From 74bcf0374dad94d352b68f10e2e3d6e0ebc2c9dc Mon Sep 17 00:00:00 2001
From: zzzz <690498789@qq.com>
Date: Sun, 07 Apr 2024 12:32:13 +0800
Subject: [PATCH] 1

---
 src/locales/index.js |   29 +++++++++++++++++++++++------
 1 files changed, 23 insertions(+), 6 deletions(-)

diff --git a/src/locales/index.js b/src/locales/index.js
index 56f1a1b..8751ded 100644
--- a/src/locales/index.js
+++ b/src/locales/index.js
@@ -1,7 +1,12 @@
 import Vue from "vue";
 import VueI18n from "vue-i18n";
-import zh from "./zh.js";
 import en from "./en.js";
+// import en from "./zh.js";
+import india from "@/locales/india";
+import tw from "@/locales/tw";
+import ty from "@/locales/taiyu.js";
+import ry from "@/locales/riyu.js";
+import hy from "@/locales/hanyu.js";
 
 Vue.use(VueI18n);
 
@@ -9,15 +14,27 @@
 const LOCALE_KEY = "language";
 
 const locales = {
-  'zh-CN': {
-    ...zh
+  "zh-CN": {
+    ...en
   },
   en: {
-    ...en
+    ...india
+  },
+  tw: {
+    ...tw
+  },
+  ty: {
+    ...ty
+  },
+  ry: {
+    ...ry
+  },
+  hy: {
+    ...hy
   }
 };
 // en-us  zh-cn
-//let langLocale = getCookie(LOCALE_KEY) || 'en';
+// let langLocale = getCookie(LOCALE_KEY) || 'en';
 if (!window.localStorage.getItem(LOCALE_KEY)) {
   window.localStorage.setItem(LOCALE_KEY, DEFAULT_LANG);
 }
@@ -40,7 +57,7 @@
 export const setup = lang => {
   if (lang === undefined) {
     // lang = window.localStorage.getItem(LOCALE_KEY);
-    //const language = getCookie(LOCALE_KEY);
+    // const language = getCookie(LOCALE_KEY);
     const language = window.localStorage.getItem(LOCALE_KEY);
     if (language) {
       langLocale = language.replace("-", "_").toLowerCase();

--
Gitblit v1.9.3