gpt4 book ai didi

localization - i18next 缺少 key 而 key 存在?

转载 作者:行者123 更新时间:2023-12-04 03:10:28 24 4
gpt4 key购买 nike

我经常收到以下错误:
i18next::translator: missingKey fr common my key.
而 key 在翻译文件中(正确加载并考虑在内)。为什么?

编辑:
当我在翻译文件的一个键中有一个 .(点字符)时,就会发生这种情况。

最佳答案

翻译文件必须是有效的 JSON 文件,并且不能包含带有 .(点)字符的键。如果 key 包含一个点,i18next 会提示缺少 key 。

关于localization - i18next 缺少 key 而 key 存在?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45740783/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com