bi18n 0.3.0

Barebone i18n crate, usable for web interfaces
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
fn main() {
    use bi18n::{I18n, Key, set, i18n_t, Locale};
    
    let mut map = ahash::AHashMap::<Key, String>::default();
    map.insert("test.hi".into(), "Hi".into());

    let i18n = I18n::new("en".into(), map);

    set(i18n);

    // println!("{}", t("test.hi"));
    let key = Key::from("Hi");
    let x = i18n_t!(key);
}