From b07cdd51ed7a0c545391da354660dc8ffb0d5fbd Mon Sep 17 00:00:00 2001
From: jhzh <1628036192@qq.com>
Date: Mon, 21 Oct 2024 23:21:15 +0800
Subject: [PATCH] 1

---
 src/i18n/index.js |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/src/i18n/index.js b/src/i18n/index.js
index eab2719..f82cf45 100644
--- a/src/i18n/index.js
+++ b/src/i18n/index.js
@@ -19,13 +19,14 @@
 import arLocale from "./ara.json";
 import viLocale from "./vie.json";
 import ItalyLocal from "./it.json";
+import TrLocal from "./tr.json";
 
 // 使用vue-i18n库
 Vue.use(VueI18n);
 
 // 获取当前语言(初始化时localStorage里没有存语言,默认为浏览器当前的语言)
-const lang = getStorage("lang") || "en";
-//const lang = 'zh-CN'
+const lang = getStorage("lang") || "tr";
+// const lang = 'korcnLocale'
 
 // 组合element ui 和 项目自身的文案文件
 const messages = {
@@ -68,10 +69,13 @@
   it: {
     ...ItalyLocal,
   },
+  tr:{
+	...TrLocal
+  }
 };
 // 创建vueI18n实例并输出,在main.js中调用
 const i18n = new VueI18n({
-  fallbackLocale: "en",
+  fallbackLocale: "ko",
   silentTranslationWarn: true,
   locale: lang,
   messages,

--
Gitblit v1.9.3