Subkeys
You can declare subkeys by just giving a map to the key:
{
"subkeys": {
"subkey_1": "This is subkey_1",
"subkey_n": "This is subkey <b>{{ n }}</b>",
"nested_subkeys": {
"nested_subkey_1": "you can nest subkeys"
}
}
}
#![allow(unused)] fn main() { t!(i18n, subkeys.subkey_1); // -> "This is subkey_1" t!(i18n, subkeys.nested_subkeys.nested_subkey_1) // -> "you can nest subkeys" }