2 unstable releases

0.2.0 Aug 23, 2024
0.1.0 Aug 23, 2024

#137 in Internationalization (i18n)

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.5MB
~33K SLoC