| | |
| | | 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 |
| | |
| | | hi: { |
| | | ...india |
| | | }, |
| | | "zh-TW": { |
| | | ...tw |
| | | 'zh-CN': { |
| | | ...zh |
| | | }, |
| | | th: { |
| | | ...ty |
| | | }, |
| | | fr: { |
| | | ...fra |
| | | }, |
| | | de: { |
| | | ...de |
| | | }, |
| | | ja: { |
| | | ...ry |
| | | }, |