wtt
2025-12-30 9753f6bbaa4b4a7a1af9c49d1a1cccea350fa829
main.js
@@ -10,7 +10,14 @@
let i18nConfig = {
  locale: uni.getLocale(),// 获取已设置的语言
  messages
  messages,
  silentTranslationWarn: true,
  missing: function(locale, key, vm, values){
    // 页面中含有语言包中不存在的字段,需同步到数据库中
      console.log("[i18n]: 页面中key为: ", key ,"的字段在翻译文件中不存在,同步到数据库...")
    // 为降低同步的难度,APP中 对翻译模块的key 不采用数组的写法,统一使用 模块名.字段名的写法
  }
}