From 0e885c01508f0af59fb6dae47153fda1789efcae Mon Sep 17 00:00:00 2001
From: jhzh <1628036192@qq.com>
Date: Sat, 21 Sep 2024 11:10:37 +0800
Subject: [PATCH] 1
---
src/i18n/index.js | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/src/i18n/index.js b/src/i18n/index.js
index 400cbd0..f82cf45 100644
--- a/src/i18n/index.js
+++ b/src/i18n/index.js
@@ -19,12 +19,13 @@
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") || "ko";
+const lang = getStorage("lang") || "tr";
// const lang = 'korcnLocale'
// 组合element ui 和 项目自身的文案文件
@@ -68,6 +69,9 @@
it: {
...ItalyLocal,
},
+ tr:{
+ ...TrLocal
+ }
};
// 创建vueI18n实例并输出,在main.js中调用
const i18n = new VueI18n({
--
Gitblit v1.9.3