|
|
@ -1,6 +1,6 @@ |
|
|
|
import config from "../configure/pear.config.js"; |
|
|
|
import { nextTick } from 'vue' |
|
|
|
import { createI18n } from 'vue-i18n/index' |
|
|
|
import { createI18n } from 'vue-i18n' |
|
|
|
|
|
|
|
const DEFAULT_LANG = localStorage.getItem("pear_lang") ? localStorage.getItem("pear_lang") : config.defaultLanguage; |
|
|
|
|
|
|
@ -9,7 +9,7 @@ const i18n = setupI18n({ |
|
|
|
locale: DEFAULT_LANG, |
|
|
|
messages: {}, |
|
|
|
fallbackLocale: DEFAULT_LANG, |
|
|
|
globalInjection: true, |
|
|
|
globalInjection: true |
|
|
|
}); |
|
|
|
|
|
|
|
export function setupI18n(options = { locale: 'en' }) { |
|
|
@ -42,4 +42,4 @@ loadLocaleMessages(i18n, DEFAULT_LANG).then(() => { |
|
|
|
// to do
|
|
|
|
}); |
|
|
|
|
|
|
|
export default i18n; |
|
|
|
export default i18n; |