123456789101112131415161718192021 |
- import Vue from 'vue'
- import VueI18n from 'vue-i18n'
- import en from './en'
- import zh from './zh'
- import { getLanguage } from '../util'
- Vue.use(VueI18n)
- let messages = {
- en,
- zh
- }
- let locale = localStorage.getItem('lang') || getLanguage()
- const i18n = new VueI18n({
- locale,
- messages
- })
- export default i18n
|