From d0556979c5c9d3d16e32d2d8aa264f60287e9b19 Mon Sep 17 00:00:00 2001 From: CD配唱片 <CD配唱片> Date: 星期一, 28 四月 2025 14:43:17 +0800 Subject: [PATCH] 中文英文包 --- src/utils/i18n/index.js | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/src/utils/i18n/index.js b/src/utils/i18n/index.js index d70138c..d26c1d7 100644 --- a/src/utils/i18n/index.js +++ b/src/utils/i18n/index.js @@ -4,7 +4,10 @@ import zh from './locales/zh.json' // 涓枃璇█鍖� const i18n = createI18n({ - locale: 'en', // 璁剧疆榛樿璇█涓鸿嫳鏂� + locale: 'zh', // 璁剧疆榛樿璇█涓轰腑鏂� + fallbackLocale: 'ch', + globalInjection:true, + legacy: false, // you must specify 'legacy: false' option messages: { en, zh, -- Gitblit v1.9.3