HarmonyOS 鸿蒙Next添加string资源报错xxxx is translated here but not found in the default locale

发布于 1周前 作者 yuanlaile 来自 鸿蒙OS

HarmonyOS 鸿蒙Next添加string资源报错xxxx is translated here but not found in the default locale

在string.json中添加string资源时提示xxxx is translated here but not found in the default locale错误,意思缺少默认配置,英文和中文都添加了还是提示该错误,无意中注意到string.json文件顶部一个提示:

image.png

点击"open editor",红色方框处为空,之后在如图添加值后,不再提示错误

cke_6333.png


更多关于HarmonyOS 鸿蒙Next添加string资源报错xxxx is translated here but not found in the default locale的实战系列教程也可以访问 https://www.itying.com/category-93-b0.html

2 回复
解决了吗?

更多关于HarmonyOS 鸿蒙Next添加string资源报错xxxx is translated here but not found in the default locale的实战系列教程也可以访问 https://www.itying.com/category-93-b0.html


解决了,就是按帖子来就行

回到顶部
AI 助手
你好,我是IT营的 AI 助手
您可以尝试点击下方的快捷入口开启体验!