From b943740d3a48c95140e92492b3895a4b01c4d94b Mon Sep 17 00:00:00 2001
From: CD配唱片 <CD配唱片>
Date: 星期二, 06 五月 2025 10:37:53 +0800
Subject: [PATCH] 提交i18n配置

---
 src/utils/i18n/index.js |   21 ++++++++++++++-------
 1 files changed, 14 insertions(+), 7 deletions(-)

diff --git a/src/utils/i18n/index.js b/src/utils/i18n/index.js
index d26c1d7..3a11011 100644
--- a/src/utils/i18n/index.js
+++ b/src/utils/i18n/index.js
@@ -1,17 +1,24 @@
 // i18n.js 鎴栫被浼肩殑閰嶇疆鏂囦欢
 import { createI18n } from 'vue-i18n'
-import en from './locales/en.json' // 鑻辨枃璇█鍖�
-import zh from './locales/zh.json' // 涓枃璇█鍖�
- 
+import {zh as planZh, en as planEn} from './locales/plan'
+import {zh as commonZh, en as commonEn} from './locales/common'
+// import {zh as testZh, en as testEn} from './test' 
+let EN = {
+  plan: planEn,
+  common: commonEn
+}
+let ZH = {
+  plan: planZh,
+  common: commonZh
+}
 const i18n = createI18n({
   locale: 'zh', // 璁剧疆榛樿璇█涓轰腑鏂�
-  fallbackLocale: 'ch',
+  fallbackLocale: 'zh',
   globalInjection:true,
   legacy: false, // you must specify 'legacy: false' option
   messages: {
-    en,
-    zh,
+    en: EN,
+    zh: ZH
   },
 })
- 
 export default i18n
\ No newline at end of file

--
Gitblit v1.9.3