feat: 新增多语言国际化页面配置,修复部分页面硬编码文案

1. 新增了zh-cn和en-us两套语言下的大量页面国际化配置文件,覆盖商品、订单、会员、营销活动等多个业务模块
2. 修复了分销页面、VR页面、支付页面、商品不存在页面的硬编码提示文案,替换为国际化调用
3. 删除了原有的i18n检查脚本文件
This commit is contained in:
2026-06-25 11:00:50 +08:00
parent 5f41febd70
commit 8e218bb663
509 changed files with 49155 additions and 55313 deletions

View File

@@ -457,13 +457,13 @@ const store = new Vuex.Store({
_themeColorCacheKey = cacheKey;
this.commit('setThemeColor', themeColor);
} catch (e) {
console.error($lang('common.index.l460'), e);
console.error('设置主题颜色失败', e);
}
},
/**
* 加载预设 + 拉远端覆写 + 深合并 + 走原 setThemeStyle/themeColorSet 链路
* 关键: 应用层一行不动 — Vuex.themeStyle / themeColor / 页面 wrapper / CSS var
* 全部保持兼容,所有改动只发生在$lang("common.index.l466")环节
* 全部保持兼容,所有改动只发生在"加载"环节
*
* @param {string} presetName style_color.js 中的 preset 名(default/red/green/...)
* @returns {Promise<{ ok: boolean, source: string, applied: object }>}
@@ -474,7 +474,7 @@ const store = new Vuex.Store({
// 1) 加载本地预设(style_color.js)
const base = await configExternal.loadTheme(finalPresetName);
if (!base) {
console.warn($lang('common.index.l477'), finalPresetName);
console.warn('[theme] loadTheme 返回空:', finalPresetName);
return { ok: false, source: 'empty', applied: null };
}
@@ -493,7 +493,7 @@ const store = new Vuex.Store({
dispatch('themeColorSet');
return { ok: true, source: 'merged', applied: merged };
} catch (e) {
console.error($lang('common.index.l496'), e);
console.error('[theme] applyThemeWithRemote 失败,回退到纯预设:', e);
// 兜底: 至少把预设应用了,避免页面无主题
try {
const base = await configExternal.loadTheme(finalPresetName);
@@ -503,7 +503,7 @@ const store = new Vuex.Store({
return { ok: false, source: 'preset-only-fallback', applied: base };
}
} catch (e2) {
console.error($lang('common.index.l506'), e2);
console.error('[theme] 纯预设回退也失败:', e2);
}
return { ok: false, source: 'fail', applied: null };
}