| | |
| | | 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 tw from "@/locales/cht.json"; |
| | | import ty from "@/locales/th.json"; |
| | | import ry from "@/locales/jp.json"; |
| | | import hy from "@/locales/kor.json"; |
| | | |
| | | Vue.use(VueI18n); |
| | | |
| | | const DEFAULT_LANG = "zh-CN"; |
| | | const DEFAULT_LANG = window.localStorage.getItem("language") || "en"; |
| | | const LOCALE_KEY = "language"; |
| | | |
| | | window.localStorage.setItem("language", DEFAULT_LANG); |
| | | const locales = { |
| | | en: { |
| | | ...en |