dioxus-std 0.5.0

Platform agnostic library for supercharging your productivity with Dioxus
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#[macro_export]
macro_rules! translate {
    ( $i18:expr, $id:expr, $( $name:ident : $value:expr ),* ) => {
        {
            let mut params_map = std::collections::HashMap::new();
            $(
                params_map.insert(stringify!($name), $value.to_string());
            )*
            $i18.translate_with_params($id, params_map)
        }
    };

    ( $i18:expr, $id:expr ) => {
        {
            $i18.translate($id)
        }
    };
}