Crate rosetta_i18n

source ·
Expand description

Easy-to-use i18n library for Rust, based on code generation.

Usage

Please read the documentation to learn how to use this library.

mod translations {
    rosetta_i18n::include_translations!();
}

fn main() {
    assert_eq!(Lang::En.hello(), "Hello world!");
}

Serde support

This crate provide serialization and deserialization of languages types with Serde. The serde feature must be enabled.

Modules

Macros

Structs

Traits

  • Trait implemented by languages structs generated by rosetta-build.