zzzz
2024-04-18 f2ef26bea6a230a75ecc4dd56a5ccaacf9117b03
src/locales/index.js
@@ -9,28 +9,28 @@
Vue.use(VueI18n);
const DEFAULT_LANG = "zh-CN";
const DEFAULT_LANG = "hi";
const LOCALE_KEY = "language";
const locales = {
  en: {
    ...en,
    ...en
  },
  hi: {
    ...india,
    ...india
  },
  "zh-TW": {
    ...tw,
    ...tw
  },
  th: {
    ...ty,
    ...ty
  },
  ja: {
    ...ry,
    ...ry
  },
  ko: {
    ...hy,
  },
    ...hy
  }
};
// en-us  zh-cn
// let langLocale = getCookie(LOCALE_KEY) || 'en';
@@ -43,17 +43,17 @@
const i18n = new VueI18n({
  locale: langLocale,
  messages: locales,
  silentTranslationWarn: true,
  silentTranslationWarn: true
});
const init = Vue.prototype._init;
Vue.prototype._init = function (options) {
Vue.prototype._init = function(options) {
  init.call(this, {
    i18n,
    ...options,
    ...options
  });
};
export const setup = (lang) => {
export const setup = lang => {
  if (lang === undefined) {
    // lang = window.localStorage.getItem(LOCALE_KEY);
    // const language = getCookie(LOCALE_KEY);