Browse Source

fix(locale): 使用系统语言代替硬编码的英文

恢复被注释掉的系统语言检测代码,优先使用设备系统语言,默认回退到英文
master
前端-胡立永 1 day ago
parent
commit
614cc4b342
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      locale/index.js

+ 2
- 2
locale/index.js View File

@ -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);


Loading…
Cancel
Save