pure-rust-locales 0.8.1

Pure Rust locales imported directly from the GNU C Library. `LC_COLLATE` and `LC_CTYPE` are not yet supported.
Documentation
use std::convert::TryInto;

#[test]
fn locale_match() {
    use pure_rust_locales::locale_match;

    let locale = "fr_BE".try_into().unwrap();

    assert_eq!(locale_match!(locale => LC_TIME::D_FMT), "%d/%m/%y");
    assert_eq!(locale_match!(locale => LC_NUMERIC::DECIMAL_POINT), ",");
    assert_eq!(locale_match!(locale => LC_NUMERIC::GROUPING), &[3, 3]);
    assert_eq!(locale_match!(locale => LC_NUMERIC::THOUSANDS_SEP), ".");
}