mirror of
https://github.com/veops/cmdb.git
synced 2025-08-11 16:35:01 +08:00
feat(ui):i18n (#347)
* feat(acl-ui):i18n * feat(base-ui):i18n * feat(cmdb-ui):i18n
This commit is contained in:
18
cmdb-ui/src/lang/index.js
Normal file
18
cmdb-ui/src/lang/index.js
Normal file
@@ -0,0 +1,18 @@
|
||||
import VueI18n from 'vue-i18n'
|
||||
import zh from './zh'
|
||||
import en from './en'
|
||||
import Vue from 'vue'
|
||||
import zhCN from 'vxe-table/lib/locale/lang/zh-CN'
|
||||
import enUS from 'vxe-table/lib/locale/lang/en-US'
|
||||
|
||||
Vue.use(VueI18n)
|
||||
const i18n = new VueI18n({
|
||||
locale: 'zh', // 初始化中文
|
||||
messages: {
|
||||
'zh': { ...zh, ...zhCN },
|
||||
'en': { ...en, ...enUS },
|
||||
},
|
||||
silentTranslationWarn: true
|
||||
})
|
||||
|
||||
export default i18n
|
Reference in New Issue
Block a user