HarmonyOS(二)字符串设置
entry/src/main/resources/base/element/string.json 此处为默认语言文字。
·
- 本地语言国际化
如下图文件结构所示,在项目创建时,工程目录便已为我们创建了对应的文件结构。 
entry/src/main/resources/base/element/string.json 此处为默认语言文字。like this picture,you can add the json list to it if you need.

And ,you can save the different language with the en_US or zh_CN ...
-
How can I use it?
Yes, you can use it like this , Text($r('app.string.pendingTask'))
更多推荐



所有评论(0)