From 614cc4b3427ba5eda3d1f63019dc0fb31c4e708d Mon Sep 17 00:00:00 2001 From: huliyong <2783385703@qq.com> Date: Wed, 18 Jun 2025 11:43:09 +0800 Subject: [PATCH] =?UTF-8?q?fix(locale):=20=E4=BD=BF=E7=94=A8=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E8=AF=AD=E8=A8=80=E4=BB=A3=E6=9B=BF=E7=A1=AC=E7=BC=96?= =?UTF-8?q?=E7=A0=81=E7=9A=84=E8=8B=B1=E6=96=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 恢复被注释掉的系统语言检测代码,优先使用设备系统语言,默认回退到英文 --- locale/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/locale/index.js b/locale/index.js index 66483a9..fe3359d 100644 --- a/locale/index.js +++ b/locale/index.js @@ -10,8 +10,8 @@ Vue.use(VueI18n) // 获取系统语言 const systemInfo = uni.getSystemInfoSync(); -const systemLang = 'en'; -// const systemLang = systemInfo.language || 'en'; +// const systemLang = 'en'; +const systemLang = systemInfo.language || 'en'; console.log(systemInfo.language, systemLang);