From 3503e5ba666e41ce8b086b4faa4291231ceaa6ef Mon Sep 17 00:00:00 2001
From: jhzh <1628036192@qq.com>
Date: Sun, 08 Jun 2025 17:15:46 +0800
Subject: [PATCH] 1
---
src/i18n/index.js | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
diff --git a/src/i18n/index.js b/src/i18n/index.js
index eab2719..4e45c77 100644
--- a/src/i18n/index.js
+++ b/src/i18n/index.js
@@ -19,12 +19,15 @@
import arLocale from "./ara.json";
import viLocale from "./vie.json";
import ItalyLocal from "./it.json";
+import sv from "./sv.json";
+import af from "./af.json";
+import es from "./es.json";
// 使用vue-i18n库
Vue.use(VueI18n);
// 获取当前语言(初始化时localStorage里没有存语言,默认为浏览器当前的语言)
-const lang = getStorage("lang") || "en";
+const lang = getStorage("lang") || "zh-TW";
//const lang = 'zh-CN'
// 组合element ui 和 项目自身的文案文件
@@ -68,6 +71,15 @@
it: {
...ItalyLocal,
},
+ es: {
+ ...es,
+ },
+ af: {
+ ...af,
+ },
+ sv: {
+ ...sv,
+ }
};
// 创建vueI18n实例并输出,在main.js中调用
const i18n = new VueI18n({
--
Gitblit v1.9.3