Commit e2d1d04d authored by youjie's avatar youjie

no message

parent fb8a5aed
......@@ -41,7 +41,11 @@ import { VTable, VPagination } from 'vue-easytable'
import 'viewerjs/dist/viewer.css'
import Viewer from 'v-viewer'
import locale from 'element-ui/lib/locale';
import enLocale from 'element-ui/lib/locale/lang/en'
import zhLocale from 'element-ui/lib/locale/lang/zh-CN'
import twLocale from 'element-ui/lib/locale/lang/zh-TW'
import jaLocale from 'element-ui/lib/locale/lang/ja'
Vue.component(VTable.name, VTable)
Vue.component(VPagination.name, VPagination)
......@@ -154,13 +158,31 @@ const i18n = new VueI18n({
locale: 'zh-CN', // 语言标识
//this.$i18n.locale // 通过切换locale的值来实现语言切换
messages: {
'zh-CN': require('./assets/common/lang/zh'), // 中文语言包
'en-US': require('./assets/common/lang/en'), // 英文语言包
'zh-TW': require('./assets/common/lang/zh-tw'), // 台湾语言包
'Japanese': require('./assets/common/lang/jp') // 日本语言包
// 'zh-CN': require('./assets/common/lang/zh'), // 中文语言包
// 'en-US': require('./assets/common/lang/en'), // 英文语言包
// 'zh-TW': require('./assets/common/lang/zh-tw'), // 台湾语言包
// 'Japanese': require('./assets/common/lang/jp') // 日本语言包
'zh-CN': {
...require('./assets/common/lang/zh'),
...zhLocale,
}, // 中文语言包
'en-US': {
...require('./assets/common/lang/en'),
...enLocale,
}, // 英文语言包
'zh-TW': {
...require('./assets/common/lang/zh-tw'),
...twLocale,
}, // 台湾语言包
'Japanese': {
...require('./assets/common/lang/jp'),
jaLocale,
} // 日本语言包
}
})
locale.i18n((key, value) => i18n.t(key, value))
import Router from 'vue-router'
const originalPush = Router.prototype.push
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment