Skip to content

Commit 0fbd791

Browse files
msgill2017sendya
authored andcommitted
add en-US directory to the locales directory and move the code from en-US.js file to different files
1 parent f2b77d2 commit 0fbd791

File tree

3 files changed

+35
-29
lines changed

3 files changed

+35
-29
lines changed

src/locales/lang/en-US.js

Lines changed: 5 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,21 @@
11
import antdEnUS from 'ant-design-vue/es/locale-provider/en_US'
22
import momentEU from 'moment/locale/eu'
3+
import menu from './en-US/menu'
4+
import setting from './en-US/setting'
35

46
const components = {
57
antLocale: antdEnUS,
68
momentName: 'eu',
79
momentLocale: momentEU
810
}
911

10-
const locale = {
12+
export default {
1113
'message': '-',
12-
'menu.home': 'Home',
13-
'menu.dashboard': 'Dashboard',
14-
'menu.dashboard.analysis': 'Analysis',
15-
'menu.dashboard.monitor': 'Monitor',
16-
'menu.dashboard.workplace': 'Workplace',
1714

1815
'layouts.usermenu.dialog.title': 'Message',
1916
'layouts.usermenu.dialog.content': 'Do you really log-out.',
2017

21-
'app.setting.pagestyle': 'Page style setting',
22-
'app.setting.pagestyle.light': 'Light style',
23-
'app.setting.pagestyle.dark': 'Dark style',
24-
'app.setting.pagestyle.realdark': 'RealDark style',
25-
'app.setting.themecolor': 'Theme Color',
26-
'app.setting.navigationmode': 'Navigation Mode',
27-
'app.setting.content-width': 'Content Width',
28-
'app.setting.fixedheader': 'Fixed Header',
29-
'app.setting.fixedsidebar': 'Fixed Sidebar',
30-
'app.setting.sidemenu': 'Side Menu Layout',
31-
'app.setting.topmenu': 'Top Menu Layout',
32-
'app.setting.content-width.fixed': 'Fixed',
33-
'app.setting.content-width.fluid': 'Fluid',
34-
'app.setting.othersettings': 'Other Settings',
35-
'app.setting.weakmode': 'Weak Mode',
36-
'app.setting.copy': 'Copy Setting',
37-
'app.setting.loading': 'Loading theme',
38-
'app.setting.copyinfo': 'copy success,please replace defaultSettings in src/models/setting.js',
39-
'app.setting.production.hint': 'Setting panel shows in development environment only, please manually modify'
40-
}
41-
42-
export default {
4318
...components,
44-
...locale
19+
...menu,
20+
...setting
4521
}

src/locales/lang/en-US/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': 'Welcome',
3+
'menu.home': 'Home',
4+
'menu.dashboard': 'Dashboard',
5+
'menu.dashboard.analysis': 'Analysis',
6+
'menu.dashboard.monitor': 'Monitor',
7+
'menu.dashboard.workplace': 'Workplace'
8+
}

src/locales/lang/en-US/setting.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
export default {
2+
'app.setting.pagestyle': 'Page style setting',
3+
'app.setting.pagestyle.light': 'Light style',
4+
'app.setting.pagestyle.dark': 'Dark style',
5+
'app.setting.pagestyle.realdark': 'RealDark style',
6+
'app.setting.themecolor': 'Theme Color',
7+
'app.setting.navigationmode': 'Navigation Mode',
8+
'app.setting.content-width': 'Content Width',
9+
'app.setting.fixedheader': 'Fixed Header',
10+
'app.setting.fixedsidebar': 'Fixed Sidebar',
11+
'app.setting.sidemenu': 'Side Menu Layout',
12+
'app.setting.topmenu': 'Top Menu Layout',
13+
'app.setting.content-width.fixed': 'Fixed',
14+
'app.setting.content-width.fluid': 'Fluid',
15+
'app.setting.othersettings': 'Other Settings',
16+
'app.setting.weakmode': 'Weak Mode',
17+
'app.setting.copy': 'Copy Setting',
18+
'app.setting.loading': 'Loading theme',
19+
'app.setting.copyinfo': 'copy success,please replace defaultSettings in src/models/setting.js',
20+
'app.setting.production.hint': 'Setting panel shows in development environment only, please manually modify'
21+
22+
}

0 commit comments

Comments
 (0)