localize_it 2.5.1

Simple and fast library for localization
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
mod locale;

use crate::locale::{
    expressions::{TEST, TEST_CALLABLE},
    localize,
};

#[test]
fn localize() {
    let argument = "Test";

    assert_eq!(localize!(TEST), TEST[0]);
    assert_eq!(
        localize!(TEST_CALLABLE as (argument)),
        TEST_CALLABLE[0](argument)
    );
}