初始化
This commit is contained in:
13
src/i18n/langs/cn.js
Normal file
13
src/i18n/langs/cn.js
Normal file
@@ -0,0 +1,13 @@
|
||||
//cn.js
|
||||
|
||||
import zhLocale from 'element-ui/lib/locale/lang/zh-CN'
|
||||
const cn = {
|
||||
message: {
|
||||
'hello': '你好,世界',
|
||||
'switch': 'English',
|
||||
'test':'测试'
|
||||
},
|
||||
...zhLocale
|
||||
}
|
||||
|
||||
export default cn
|
||||
13
src/i18n/langs/en.js
Normal file
13
src/i18n/langs/en.js
Normal file
@@ -0,0 +1,13 @@
|
||||
//en.js
|
||||
|
||||
import enLocale from 'element-ui/lib/locale/lang/en'
|
||||
const en = {
|
||||
message: {
|
||||
'hello': 'hello, world',
|
||||
'switch': '简体中文',
|
||||
'test':'test'
|
||||
},
|
||||
...enLocale
|
||||
}
|
||||
|
||||
export default en
|
||||
6
src/i18n/langs/index.js
Normal file
6
src/i18n/langs/index.js
Normal file
@@ -0,0 +1,6 @@
|
||||
import en from './en'
|
||||
import cn from './cn'
|
||||
export default {
|
||||
en,
|
||||
cn
|
||||
}
|
||||
Reference in New Issue
Block a user