pub trait CommandPresentationContext {
// Required method
fn translate(
&self,
key: &str,
replacements: &[(&str, &str)],
) -> Result<String, String>;
}Expand description
Stable-key translation with named replacements (FEAT-018 D3).
Message identity uses stable snake_case keys plus named replacements. The TUI host maps those keys to the current catalog and preserves the existing English fallback for intentionally incomplete locale packs. Unknown keys or invalid replacement contracts fail safely and produce a command error; they never panic and never display a raw lookup key.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".