From 289948f53b5e0b00a656d60c08efbff0eb05fa90 Mon Sep 17 00:00:00 2001
From: dcc <dcc@163.com>
Date: Thu, 16 May 2024 15:37:05 +0800
Subject: [PATCH] 提款更改

---
 src/locales/index.js |   32 ++++++++++++++++++++++----------
 1 files changed, 22 insertions(+), 10 deletions(-)

diff --git a/src/locales/index.js b/src/locales/index.js
index 7148d30..c341a9e 100644
--- a/src/locales/index.js
+++ b/src/locales/index.js
@@ -1,24 +1,35 @@
 import Vue from "vue";
 import VueI18n from "vue-i18n";
-// import en from './en.js'
-import en from "./zh.js";
-import india from "@/locales/india";
-import tw from "@/locales/tw";
+import en from "./en.json";
+import india from "@/locales/india.json";
+import tw from "@/locales/tw.json";
+import ty from "@/locales/taiyu.json";
+import ry from "@/locales/riyu.json";
+import hy from "@/locales/hanyu.json";
 
 Vue.use(VueI18n);
 
-const DEFAULT_LANG = "zh-CN";
+const DEFAULT_LANG = "en";
 const LOCALE_KEY = "language";
 
 const locales = {
-  "zh-CN": {
+  en: {
     ...en
   },
-  en: {
+  hi: {
     ...india
   },
-  tw: {
+  "zh-TW": {
     ...tw
+  },
+  th: {
+    ...ty
+  },
+  ja: {
+    ...ry
+  },
+  ko: {
+    ...hy
   }
 };
 // en-us  zh-cn
@@ -28,7 +39,8 @@
 }
 let langLocale = window.localStorage.getItem(LOCALE_KEY)
   ? window.localStorage.getItem(LOCALE_KEY)
-  : "zh-CN";
+  : "en";
+console.log(langLocale)
 const i18n = new VueI18n({
   locale: langLocale,
   messages: locales,
@@ -58,7 +70,7 @@
     }
     // console.log(`lang-${lang}`);
   }
-
+  console.log(lang)
   Vue.config.lang = lang;
   i18n.locale = lang;
 };

--
Gitblit v1.9.3