From 612a2c75696cee9871697983dbec3519ea90a5aa Mon Sep 17 00:00:00 2001 From: wan201809 <53882753+wan201809@users.noreply.github.com> Date: Mon, 18 Jul 2022 11:24:24 +0800 Subject: [PATCH] =?UTF-8?q?update=20i18n.md=20=E8=A1=A5=E5=85=85i18n?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/tutorial/i18n.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/tutorial/i18n.md b/docs/tutorial/i18n.md index 0828372d2..94a98b888 100644 --- a/docs/tutorial/i18n.md +++ b/docs/tutorial/i18n.md @@ -414,3 +414,11 @@ HBuilderX 3.3 起,新建项目可以直接选择`hello i18n`模板,或者去 - 项目根目录 `locale` 目录下新增框架语言支持,uni-app.ja-JP.json 文件,ja-JP 表示语言代码 - 调用 `uni.getLocale()` 执行逻辑,manifest.json -> locale || 系统语言,匹配uni内置框架语言和开发者配置的语言 uni-app.*.json 文件,成功则返回对应的语言码,默认 zh-Hans + +## HBuilderX代码提示@codeHints + +HBuilderX 3.5.2 起,关于i18n国际化,uni-app pages.json和Vue页面 HBuilderX支持i18n相关代码提示。 + +![uni-app vue页面代码提示](https://img-cdn-tc.dcloud.net.cn/uploads/article/20220718/cf84e221c1fcbedee25be726afcaf23c.png) + +![uni-app pages.json i18n国际化代码提示](https://img-cdn-tc.dcloud.net.cn/uploads/article/20220718/6e74e8254dbf956249a5570ede201ce3.png) \ No newline at end of file -- GitLab