From d0556979c5c9d3d16e32d2d8aa264f60287e9b19 Mon Sep 17 00:00:00 2001
From: CD配唱片 <CD配唱片>
Date: 星期一, 28 四月 2025 14:43:17 +0800
Subject: [PATCH] 中文英文包
---
src/utils/i18n/locales/zh.json | 9 +++++++--
src/utils/i18n/index.js | 5 ++++-
2 files changed, 11 insertions(+), 3 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,
diff --git a/src/utils/i18n/locales/zh.json b/src/utils/i18n/locales/zh.json
index 544b7b4..de7db2e 100644
--- a/src/utils/i18n/locales/zh.json
+++ b/src/utils/i18n/locales/zh.json
@@ -1,3 +1,8 @@
{
-
-}
\ No newline at end of file
+ "Home": "棣栭〉",
+ "About": "鍏充簬鎴戜滑",
+ "productService": "浜у搧鏈嶅姟",
+ "cases": "琛屼笟瑙e喅鏂规",
+ "news": "鏂伴椈鍔ㄦ��",
+ "contactUs": "鑱旂郴鎴戜滑"
+}
--
Gitblit v1.9.3