Registry / utility / rust-i18n

rust-i18n

JSON →
library4.0.0rscratesunverified

Rust I18n uses Rust codegen to load YAML file storage translations at compile time, providing a t! macro for simple translation text retrieval.

# Cargo.toml [dependencies] rust-i18n = "4.0.0"
INSTALL
IMPORT
SIG · RUST-I18N
R
rust-i18n
utilityrustv4.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

t
use rust_i18n::t;

Translate a key using the t! macro.

use rust_i18n::t; fn main() { println!("{}", t!("hello")); }
Debug
Known issues
gotchaTranslations must be in YAML files in a specific directory structure
fix
Place YAML files in a 'locales' directory at the crate root.
affects: >=4.0.0
Upgrade
Version history
4.0.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
rust-i18n — cargo add rust-i18n · libregistry