英文:
React Typescript i18n : i18next::translator: missingKey en translation
问题
I have been trying to use the 'backend' option to load my translations but seeing 'missing_key' for all the translations. Attached are the screenshots of my code. Any help will be appreciated.
英文:
I have been trying to use 'backend' option to load my translations but seeing 'missing_key' for all the translations. Attached are the screenshots of my code. Any help will be appreciated.
答案1
得分: 0
检查您的翻译文件中的键是否相匹配。它们必须是相同的,例如:
en/translation.json
{
"name": "Name"
}
fr/translation.json
{
"name": "Nom"
}
英文:
Check if the keys in your translation files match each other. They must be identical, example:
en/translation.json
{
"name": "Name"
}
fr/translation.json
{
"name": "Nom"
}
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论