Closed alvarotrigo closed 6 years ago
Found the solution, we have to change the default value for keyseparator
in i18next
static-i18n -l en -i en -i es --fileFormat yml --i18n "{\"keyseparator\": \"::\"}" www
Hi,
Yes, by default .
is used to separate keys to be able to nest them.
As you said, changing the keyseparator is I think the best solution.
Note that you can used single quotes in your shell to avoid having to escape JSON keys:
static-i18n -l en -i en -i es --fileFormat yml --i18n '{"keyseparator": "::"}' www
For example:
Using the following json file:
It seems the dot is not allowed within the key. Not matter if you use json or yaml