simple-i18n 0.1.4

A simple compile time i18n implementation in Rust.
Documentation
1
2
3
4
5
6
7
8
9
fn main() {
    println!("cargo:rerun-if-env-changed=LOCALE_PATH");
    if let Some(locale_path) = option_env!("LOCALE_PATH") {
        let locale_path = i18n_find_locale::find_locale(locale_path);
        if let Some(s) = locale_path.to_str() {
            println!("cargo:rerun-if-changed={}", s);
        }
    }
}