Skip to content

Commit cc52212

Browse files
authored
Merge pull request #2 from vannel/feature/i18n-zh-CN
feat(i18n): add Chinese language
2 parents 42bf95d + 33e303d commit cc52212

File tree

2 files changed

+141
-0
lines changed

2 files changed

+141
-0
lines changed

src/locale/zh_CN/index.js

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
import route from './route';
2+
import components from '@/demo/locale/en/components';
3+
4+
export default {
5+
route,
6+
components,
7+
toolbar: {
8+
appname: '我的应用',
9+
settings: '设置',
10+
profile: '资料',
11+
logout: '退出',
12+
},
13+
settings: {
14+
title: '主题设置',
15+
default: '设为默认',
16+
position: '元素位置',
17+
theme: '主题',
18+
dark: '暗黑主题',
19+
toolbarDense: '紧凑工具栏',
20+
navbarDense: '紧凑导航栏',
21+
navbarLogo: '导航栏Logo',
22+
settingsBtn: '设置按钮',
23+
footer: '页脚',
24+
},
25+
login: {
26+
titleIn: '登录',
27+
titleUn: '注册',
28+
singIn: '登录',
29+
singUp: '注册',
30+
email: 'Email',
31+
password: '密码',
32+
confirm: '确认',
33+
},
34+
errors: {
35+
whoops: '哦嚯~!',
36+
back: '返回!',
37+
301: 'Moved Permanently',
38+
401: '未授权访问',
39+
403: '禁止访问',
40+
404: '页面未找到',
41+
500: '内部服务器错误',
42+
},
43+
guide: {
44+
description: '引导页对于第一次进入项目的人来说是很有用的. 你可以简单的介绍一下项目的特性. Demo是基于',
45+
button: '显示引导信息',
46+
},
47+
ui: {
48+
switch: '切换语言',
49+
theme: '切换主题',
50+
success: '成功',
51+
error: '错误',
52+
warning: '警告',
53+
info: '提示',
54+
primary: '主要',
55+
secondary: '次要',
56+
default: '默认',
57+
accent: '强调',
58+
firstName: '名',
59+
lastName: '姓',
60+
email: 'E-mail',
61+
},
62+
};

src/locale/zh_CN/route.js

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
export default {
2+
dashboard: '仪表盘',
3+
// introduction: 'Introduction',
4+
documentation: '文档',
5+
guide: '指引',
6+
roadmap: '线路图',
7+
i18n: '国际化',
8+
theme: '主题',
9+
// pagePermission: 'Page Permission',
10+
// rolePermission: 'Role Permission',
11+
permissions: '权限',
12+
permission: {
13+
admin: '管理员',
14+
editor: '编辑者',
15+
visitor: '访问者',
16+
},
17+
components: '组件',
18+
component: {
19+
avatarUpload: '头像上传',
20+
backToTop: '回到顶部',
21+
countTo: '累加器',
22+
dragKanban: '可拖动看板',
23+
dropzone: 'Dropzone',
24+
jsonEditor: 'Json编辑器',
25+
markdown: 'Markdown',
26+
splitPane: '分隔栏',
27+
sticky: '黏贴(Sticky)',
28+
tinymce: '富文本编辑(Tinymce)',
29+
},
30+
vuetify: 'Vuetify UI',
31+
vuetifyComponents: {
32+
/* There might be some different names of each component in this section, so the original English name of each component is reserved. */
33+
components: '组件/Components',
34+
alert: '警告/Alert',
35+
avatar: '头像/Avatars',
36+
badge: '标徽/Badges',
37+
buttons: '按钮/Buttons',
38+
calendar: '日历/Calendar',
39+
cards: '卡片/Cards',
40+
carousels: '轮播/Carousels',
41+
chip: '胶囊/Chip',
42+
colors: '颜色/Colors',
43+
datepicker: '日期选择/Datepicker',
44+
dialogs: '对话框/Dialogs',
45+
grid: '网格/Grid',
46+
icon: '图标/Icons',
47+
pagination: '分页/Pagination',
48+
parallax: '视差/Parallax',
49+
progress: '进度条/Progress',
50+
slider: '滑动/Slider',
51+
snackbar: '消息提示/Snackbar',
52+
tables: '表格/Tables',
53+
timepicker: '时间选择/Timepicker',
54+
tooltip: '提示信息/Tooltip',
55+
typography: '版式/Typography',
56+
},
57+
errors: '错误',
58+
errorPages: {
59+
page301: '301',
60+
page401: '401',
61+
page403: '403',
62+
page404: '404',
63+
page500: '500',
64+
},
65+
charts: '图表',
66+
chart: {
67+
keyboardChart: '柱状图表',
68+
lineChart: '曲线图',
69+
mixChart: '混合图表',
70+
},
71+
nested: {
72+
nested: '嵌套',
73+
nested1: '一级',
74+
nested2: '二级',
75+
nested3: '三级',
76+
},
77+
clipboard: '剪切板',
78+
externalLink: '外部链接',
79+
};

0 commit comments

Comments
 (0)