From 4d48164fbcfae402d9b211dfb8af9e224c076cea Mon Sep 17 00:00:00 2001
From: jhzh <1628036192@qq.com>
Date: Wed, 25 Sep 2024 13:45:38 +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