mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-26 17:49:15 +01:00
18 lines
279 B
Go
18 lines
279 B
Go
import Vue from 'vue'
|
|
import VueI18n from 'vue-i18n'
|
|
import en from './en'
|
|
import zh from './zh'
|
|
|
|
Vue.use(VueI18n)
|
|
|
|
const i18n = new VueI18n({
|
|
locale: localStorage.getItem('lang') || 'zh',
|
|
messages: {
|
|
en,
|
|
zh
|
|
},
|
|
silentTranslationWarn: true
|
|
})
|
|
|
|
export default i18n
|