utils/i18n.js
@@ -26,7 +26,16 @@ } = res.data if (count == 1) { enableCollectMissingKey = true return data let getRemoteFile = true if (!res.data.EnableRemoteI18n || res.data.EnableRemoteI18n == 'N') { // 判断服务器是否启用多语言配置项,无该配置项或者不启用配置项,则不收集缺失字符串,使用本地翻译文件 enableCollectMissingKey = false getRemoteFile = false } return { data: data, getRemoteFile: getRemoteFile } } else { enableCollectMissingKey = false CommonUtils.showTips({ @@ -81,7 +90,7 @@ }) // 清除缺失字段缓存 MissingKeysMap = {} uni.hideLoading() // 重启应用 const systemInfo = uni.getSystemInfoSync();