2 unstable releases

0.2.0 Aug 23, 2024
0.1.0 Aug 23, 2024

#138 in Internationalization (i18n)

Download history 144/week @ 2024-08-17 80/week @ 2024-08-24 30/week @ 2024-09-14 22/week @ 2024-09-21 9/week @ 2024-09-28

61 downloads per month

MIT/Apache

5KB
77 lines

metw-locales

Locales for metw.cc


lib.rs:

You can create [Locale] from &str.

use metw_locales::Locale;

assert_eq!(Locale::en, Locale::from_str("en_US").unwrap());
assert_eq!(Locale::tr, Locale::from_str("tr_TR").unwrap());
assert_eq!(Locale::tr, Locale::from_str("tr").unwrap());

Dependencies

~0.7–1.6MB
~35K SLoC