I am using i18next and react-i18next. i18n Ally v2.8.1.
I have one locale file: /locales/en.json
Structure of this file:
{
"pagetitle.home": "Home",
"pagetitle.restore": "Restore",
"pagetitle.register": "Register"
}
When hover on code i18n.t('pagetitle.restore')
ru: i18n key "en.pagetitle.restore" does not exist(i18n-ally-key-missing)
Which config of extension should be?
P.S. I cant change locales structure.
Try changing the .vscode/settings.json to add your "locals" path:
If this does not work, try to add a defaultNamespace to your language file:
Example:
en.json
Implementation:
.vscode/settings.json