Skip to content

Commit 77d4a9d

Browse files
msgill2017sendya
authored andcommitted
add zh-CN directory to the locales directory and move the code from zh-CN.js file to different files
1 parent 0fbd791 commit 77d4a9d

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

src/locales/lang/zh-CN.js

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,16 @@
11
import antd from 'ant-design-vue/es/locale-provider/zh_CN'
22
import momentCN from 'moment/locale/zh-cn'
3+
import menu from './zh-CN/menu'
34

45
const components = {
56
antLocale: antd,
67
momentName: 'zh-cn',
78
momentLocale: momentCN
89
}
910

10-
const locale = {
11+
export default {
1112
'message': '-',
12-
'menu.home': '主页',
13-
'menu.dashboard': '仪表盘',
14-
'menu.dashboard.analysis': '分析页',
15-
'menu.dashboard.monitor': '监控页',
16-
'menu.dashboard.workplace': '工作台'
17-
}
1813

19-
export default {
2014
...components,
21-
...locale
15+
...menu
2216
}

src/locales/lang/zh-CN/menu.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
export default {
2+
'menu.welcome': '欢迎',
3+
'menu.home': '主页',
4+
'menu.dashboard': '仪表盘',
5+
'menu.dashboard.analysis': '分析页',
6+
'menu.dashboard.monitor': '监控页',
7+
'menu.dashboard.workplace': '工作台'
8+
}

0 commit comments

Comments
 (0)