初始化

This commit is contained in:
clay
2021-12-27 22:41:01 +08:00
commit 6d8154dc9e
18 changed files with 12514 additions and 0 deletions

13
src/i18n/langs/cn.js Normal file
View 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
View 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
View File

@@ -0,0 +1,6 @@
import en from './en'
import cn from './cn'
export default {
en,
cn
}