When using a JSON file for i18n, e.g.:
en.json
{
"contact": {
"hello": "hello",
"world": "world",
"other": "any string"
}
and referring to the keys in an HTML template like this:
<h1>{{ i18n "contact.hello" }}<h1>
the page will correctly render, but if you try to use {{ i18n "contact.other" }}
anywhere on the page, all other i18n strings will disappear.
This is not a big issue, I just do not use “other” as a key in my JSON containing i18n but I thought to share.
ps - thank you for allowing .json
files to house my i18n
strings, the TOML
format is not as compact.