Skip to content

Commit 7bddfa2

Browse files
PanJiaChenillidanet
authored andcommitted
docs: refine i18n (PanJiaChen#1848)
1 parent 13189d8 commit 7bddfa2

File tree

8 files changed

+29
-35
lines changed

8 files changed

+29
-35
lines changed

src/lang/en.js

+9-11
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
export default {
22
route: {
33
dashboard: 'Dashboard',
4-
introduction: 'Introduction',
54
documentation: 'Documentation',
65
guide: 'Guide',
76
permission: 'Permission',
@@ -10,7 +9,6 @@ export default {
109
directivePermission: 'Directive Permission',
1110
icons: 'Icons',
1211
components: 'Components',
13-
componentIndex: 'Introduction',
1412
tinymce: 'Tinymce',
1513
markdown: 'Markdown',
1614
jsonEditor: 'JSON Editor',
@@ -19,9 +17,9 @@ export default {
1917
avatarUpload: 'Avatar Upload',
2018
dropzone: 'Dropzone',
2119
sticky: 'Sticky',
22-
countTo: 'CountTo',
20+
countTo: 'Count To',
2321
componentMixin: 'Mixin',
24-
backToTop: 'BackToTop',
22+
backToTop: 'Back To Top',
2523
dragDialog: 'Drag Dialog',
2624
dragSelect: 'Drag Select',
2725
dragKanban: 'Drag Kanban',
@@ -74,7 +72,7 @@ export default {
7472
},
7573
login: {
7674
title: 'Login Form',
77-
logIn: 'Log in',
75+
logIn: 'Login',
7876
username: 'Username',
7977
password: 'Password',
8078
any: 'any',
@@ -88,10 +86,10 @@ export default {
8886
},
8987
permission: {
9088
addRole: 'New Role',
91-
editPermission: 'Edit Permission',
89+
editPermission: 'Edit',
9290
roles: 'Your roles',
9391
switchRoles: 'Switch roles',
94-
tips: 'In some cases it is not suitable to use v-permission, such as element Tab component or el-table-column and other asynchronous rendering dom cases which can only be achieved by manually setting the v-if.',
92+
tips: 'In some cases, using v-permission will have no effect. For example: Element-UI el-tab or el-table-column and other scenes that dynamically render dom. You can only do this with v-if.',
9593
delete: 'Delete',
9694
confirm: 'Confirm',
9795
cancel: 'Cancel'
@@ -102,7 +100,7 @@ export default {
102100
},
103101
components: {
104102
documentation: 'Documentation',
105-
tinymceTips: 'Rich text editor is a core part of management system, but at the same time is a place with lots of problems. In the process of selecting rich texts, I also walked a lot of detours. The common rich text editors in the market are basically used, and the finally chose Tinymce. See documentation for more detailed rich text editor comparisons and introductions.',
103+
tinymceTips: 'Rich text is a core feature of the management backend, but at the same time it is a place with lots of pits. In the process of selecting rich texts, I also took a lot of detours. The common rich texts on the market have been basically used, and I finally chose Tinymce. See the more detailed rich text comparison and introduction.',
106104
dropzoneTips: 'Because my business has special needs, and has to upload images to qiniu, so instead of a third party, I chose encapsulate it by myself. It is very simple, you can see the detail code in @/components/Dropzone.',
107105
stickyTips: 'when the page is scrolled to the preset position will be sticky on the top.',
108106
backToTopTips1: 'When the page is scrolled to the specified position, the Back to Top button appears in the lower right corner',
@@ -143,14 +141,14 @@ export default {
143141
excel: {
144142
export: 'Export',
145143
selectedExport: 'Export Selected Items',
146-
placeholder: 'Please enter the file name(default excel-list)'
144+
placeholder: 'Please enter the file name (default excel-list)'
147145
},
148146
zip: {
149147
export: 'Export',
150-
placeholder: 'Please enter the file name(default file)'
148+
placeholder: 'Please enter the file name (default file)'
151149
},
152150
pdf: {
153-
tips: 'Here we use window.print() to implement the feature of downloading pdf.'
151+
tips: 'Here we use window.print() to implement the feature of downloading PDF.'
154152
},
155153
theme: {
156154
change: 'Change Theme',

src/lang/es.js

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
export default {
22
route: {
33
dashboard: 'Panel de control',
4-
introduction: 'Introducción',
54
documentation: 'Documentación',
65
guide: 'Guía',
76
permission: 'Permisos',
@@ -10,7 +9,6 @@ export default {
109
directivePermission: 'Permisos de la directiva',
1110
icons: 'Iconos',
1211
components: 'Componentes',
13-
componentIndex: 'Introducción',
1412
tinymce: 'Tinymce',
1513
markdown: 'Markdown',
1614
jsonEditor: 'Editor JSON',

src/lang/zh.js

+13-15
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
export default {
22
route: {
33
dashboard: '首页',
4-
introduction: '简述',
54
documentation: '文档',
65
guide: '引导页',
76
permission: '权限测试页',
@@ -10,16 +9,15 @@ export default {
109
directivePermission: '指令权限',
1110
icons: '图标',
1211
components: '组件',
13-
componentIndex: '介绍',
1412
tinymce: '富文本编辑器',
1513
markdown: 'Markdown',
16-
jsonEditor: 'JSON编辑器',
14+
jsonEditor: 'JSON 编辑器',
1715
dndList: '列表拖拽',
1816
splitPane: 'Splitpane',
1917
avatarUpload: '头像上传',
2018
dropzone: 'Dropzone',
2119
sticky: 'Sticky',
22-
countTo: 'CountTo',
20+
countTo: 'Count To',
2321
componentMixin: '小组件',
2422
backToTop: '返回顶部',
2523
dragDialog: '拖拽 Dialog',
@@ -32,17 +30,17 @@ export default {
3230
example: '综合实例',
3331
nested: '路由嵌套',
3432
menu1: '菜单1',
35-
'menu1-1': '菜单1-1',
36-
'menu1-2': '菜单1-2',
37-
'menu1-2-1': '菜单1-2-1',
38-
'menu1-2-2': '菜单1-2-2',
39-
'menu1-3': '菜单1-3',
40-
menu2: '菜单2',
33+
'menu1-1': '菜单 1-1',
34+
'menu1-2': '菜单 1-2',
35+
'menu1-2-1': '菜单 1-2-1',
36+
'menu1-2-2': '菜单 1-2-2',
37+
'menu1-3': '菜单 1-3',
38+
menu2: '菜单 2',
4139
Table: 'Table',
42-
dynamicTable: '动态Table',
43-
dragTable: '拖拽Table',
44-
inlineEditTable: 'Table内编辑',
45-
complexTable: '综合Table',
40+
dynamicTable: '动态 Table',
41+
dragTable: '拖拽 Table',
42+
inlineEditTable: 'Table 内编辑',
43+
complexTable: '综合 Table',
4644
tab: 'Tab',
4745
form: '表单',
4846
createArticle: '创建文章',
@@ -91,7 +89,7 @@ export default {
9189
editPermission: '编辑权限',
9290
roles: '你的权限',
9391
switchRoles: '切换权限',
94-
tips: '在某些情况下,不适合使用 v-permission。例如:Element-UI 的 Tab 组件或 el-table-column 以及其它动态渲染 dom 的场景。你只能通过手动设置 v-if 来实现。',
92+
tips: '在某些情况下,不适合使用 v-permission。例如:Element-UI 的 el-tab 或 el-table-column 以及其它动态渲染 dom 的场景。你只能通过手动设置 v-if 来实现。',
9593
delete: '删除',
9694
confirm: '确定',
9795
cancel: '取消'

src/views/excel/components/FilenameOption.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div style="display:inline-block;">
33
<!-- $t is vue-i18n global function to translate lang -->
44
<label class="radio-label" style="padding-left:0;">Filename: </label>
5-
<el-input v-model="filename" :placeholder="$t('excel.placeholder')" style="width:340px;" prefix-icon="el-icon-document" />
5+
<el-input v-model="filename" :placeholder="$t('excel.placeholder')" style="width:350px;" prefix-icon="el-icon-document" />
66
</div>
77
</template>
88

src/views/excel/selectExcel.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<div class="app-container">
33
<!-- $t is vue-i18n global function to translate lang -->
4-
<el-input v-model="filename" :placeholder="$t('excel.placeholder')" style="width:340px;" prefix-icon="el-icon-document" />
4+
<el-input v-model="filename" :placeholder="$t('excel.placeholder')" style="width:350px;" prefix-icon="el-icon-document" />
55
<el-button :loading="downloadLoading" style="margin-bottom:20px" type="primary" icon="document" @click="handleDownload">
66
{{ $t('excel.selectedExport') }}
77
</el-button>

src/views/permission/components/SwitchRoles.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<template>
22
<div>
33
<div style="margin-bottom:15px;">
4-
{{ $t('permission.roles') }} {{ roles }}
4+
{{ $t('permission.roles') }}: {{ roles }}
55
</div>
6-
{{ $t('permission.switchRoles') }}
6+
{{ $t('permission.switchRoles') }}:
77
<el-radio-group v-model="switchRoles">
88
<el-radio-button label="editor" />
99
<el-radio-button label="admin" />

src/views/table/dragTable.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@
5454
</el-table>
5555
<!-- $t is vue-i18n global function to translate lang (lang in @/lang) -->
5656
<div class="show-d">
57-
{{ $t('table.dragTips1') }} : &nbsp; {{ oldList }}
57+
<el-tag style="margin-right:12px;">{{ $t('table.dragTips1') }} :</el-tag> {{ oldList }}
5858
</div>
5959
<div class="show-d">
60-
{{ $t('table.dragTips2') }} : {{ newList }}
60+
<el-tag>{{ $t('table.dragTips2') }} :</el-tag> {{ newList }}
6161
</div>
6262
</div>
6363
</template>

src/views/zip/index.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<!-- $t is vue-i18n global function to translate lang -->
44
<el-input v-model="filename" :placeholder="$t('zip.placeholder')" style="width:300px;" prefix-icon="el-icon-document" />
55
<el-button :loading="downloadLoading" style="margin-bottom:20px;" type="primary" icon="document" @click="handleDownload">
6-
{{ $t('zip.export') }} zip
6+
{{ $t('zip.export') }} Zip
77
</el-button>
88
<el-table v-loading="listLoading" :data="list" element-loading-text="拼命加载中" border fit highlight-current-row>
99
<el-table-column align="center" label="ID" width="95">

0 commit comments

Comments
 (0)