Rust yaml format
Rust YAML localisation format is used by Rust web frameworks and applications that use YAML-based i18n crates such as rust-i18n. The format stores key-value string mappings in YAML with nested key hierarchies supported. Rust i18n crates can load these YAML files at compile time or runtime for string resolution.
Rust YAML locale files use standard YAML key-value format. Keys are typically organised in a flat or two-level hierarchy. String values can contain interpolation variables using library-specific syntax. Pluralisation support varies by crate — some use separate one and other key variants, others use ICU message format.
Best practice: keep locale file structure as flat as possible — deeply nested YAML is harder to maintain across languages. Use the crate's macro or function for string lookup rather than string concatenation to enable static analysis tools to verify key existence. Language Monster supports Rust YAML format and handles the key-value structure correctly.
