zzzz
2024-04-25 129535fe29ba25a1f40b90fcf5bc7606ea127a67
src/locales/index.js
@@ -1,17 +1,19 @@
import Vue from "vue";
import VueI18n from "vue-i18n";
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";
import india from "@/locales/hi.json";
import zh from "@/locales/zh.json";
import ty from "@/locales/th.json";
import ry from "@/locales/jp.json";
import hy from "@/locales/kor.json";
import de from "@/locales/de.json";
import fra from "@/locales/fra.json";
Vue.use(VueI18n);
const DEFAULT_LANG = "zh-CN";
const DEFAULT_LANG = window.localStorage.getItem("language") || "hi";
const LOCALE_KEY = "language";
window.localStorage.setItem("language", DEFAULT_LANG);
const locales = {
  en: {
    ...en
@@ -19,12 +21,18 @@
  hi: {
    ...india
  },
  "zh-TW": {
    ...tw
  'zh-CN': {
    ...zh
  },
  th: {
    ...ty
  },
  fr: {
    ...fra
  },
  de: {
    ...de
  },
  ja: {
    ...ry
  },