diff --git a/src/lang/en.js b/src/lang/en.js
index e6e5a9e9..7d5386a7 100644
--- a/src/lang/en.js
+++ b/src/lang/en.js
@@ -1,49 +1,49 @@
export default {
route: {
- dashboard: 'dashboard',
- introduction: 'introduction',
- permission: 'permission',
- icons: 'icons',
- components: 'components:',
- componentIndex: 'introduction',
- tinymce: 'tinymce',
+ dashboard: 'Dashboard',
+ introduction: 'Introduction',
+ permission: 'Permission',
+ icons: 'Icons',
+ components: 'Components',
+ componentIndex: 'Introduction',
+ tinymce: 'Tinymce',
markdown: 'Markdown',
jsonEditor: 'JSON Editor',
- dndList: 'dnd list',
- splitPane: 'Splitpane',
- avatarUpload: 'avatar upload',
+ dndList: 'Dnd List',
+ splitPane: 'SplitPane',
+ avatarUpload: 'Avatar Upload',
dropzone: 'Dropzone',
sticky: 'Sticky',
countTo: 'CountTo',
componentMixin: 'Mixin',
- backToTop: 'backToTop',
- charts: 'charts',
- chartsIndex: 'introduction',
- keyboardChart: 'keyboard chart',
- keyboardChart2: 'keyboard chart2',
- lineChart: 'line chart',
- mixChart: 'mix chart',
- example: 'example',
+ backToTop: 'BackToTop',
+ charts: 'Charts',
+ chartsIndex: 'Introduction',
+ keyboardChart: 'Keyboard Chart',
+ keyboardChart2: 'Keyboard Chart2',
+ lineChart: 'Line chart',
+ mixChart: 'Mix Chart',
+ example: 'Example',
Table: 'Table',
- dynamicTable: '动态table',
- dragTable: '拖拽table',
- inlineEditTable: 'table内编辑',
- complexTabl: '综合table',
+ dynamicTable: 'Dynamic Table',
+ dragTable: 'Drag Table',
+ inlineEditTable: 'Inline Edit',
+ complexTable: 'Complex Table',
tab: 'Tab',
form: 'Form',
- createForm: 'create form',
- editForm: 'edit form',
- errorPages: 'error pages',
+ createForm: 'Create Form',
+ editForm: 'Edit Form',
+ errorPages: 'Error Pages',
page401: '401',
page404: '404',
- errorLog: 'error log',
- excel: 'excel',
- exportExcel: 'export excel',
- selectExcel: 'export selected',
- uploadExcel: 'upload excel',
- exportZip: 'zip',
- theme: 'theme',
- clipboardDemo: 'clipboard',
- i18n: 'i18n'
+ errorLog: 'Error Log',
+ excel: 'Excel',
+ exportExcel: 'Export Excel',
+ selectExcel: 'Export Selected',
+ uploadExcel: 'Upload Excel',
+ exportZip: 'Zip',
+ theme: 'Theme',
+ clipboardDemo: 'Clipboard',
+ i18n: 'I18n'
}
}
diff --git a/src/lang/zh.js b/src/lang/zh.js
index ce6edbb1..37e5d65d 100644
--- a/src/lang/zh.js
+++ b/src/lang/zh.js
@@ -28,7 +28,7 @@ export default {
dynamicTable: '动态table',
dragTable: '拖拽table',
inlineEditTable: 'table内编辑',
- complexTabl: '综合table',
+ complexTable: '综合table',
tab: 'Tab',
form: '表单',
createForm: '创建表单',
diff --git a/src/router/index.js b/src/router/index.js
index cd116f34..67a87197 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -151,7 +151,7 @@ export const asyncRouterMap = [
{ path: 'dynamic-table', component: _import('example/table/dynamicTable/index'), name: 'dynamicTable', meta: { title: 'dynamicTable' }},
{ path: 'drag-table', component: _import('example/table/dragTable'), name: 'dragTable', meta: { title: 'dragTable' }},
{ path: 'inline-edit-table', component: _import('example/table/inlineEditTable'), name: 'inlineEditTable', meta: { title: 'inlineEditTable' }},
- { path: 'complex-table', component: _import('example/table/complexTable'), name: 'complexTable', meta: { title: 'complexTabl' }}
+ { path: 'complex-table', component: _import('example/table/complexTable'), name: 'complexTable', meta: { title: 'complexTable' }}
]
},
{ path: 'tab/index', icon: 'tab', component: _import('example/tab/index'), name: 'tab', meta: { title: 'tab' }}
diff --git a/src/views/layout/components/Levelbar.vue b/src/views/layout/components/Levelbar.vue
index 39f2da8e..d452ca63 100644
--- a/src/views/layout/components/Levelbar.vue
+++ b/src/views/layout/components/Levelbar.vue
@@ -1,8 +1,8 @@
- {{item.meta.title}}
- {{item.meta.title}}
+ {{generateTitle(item.meta.title)}}
+ {{generateTitle(item.meta.title)}}
@@ -26,9 +26,12 @@ export default {
}
const first = matched[0]
if (first && first.name !== 'dashboard') {
- matched = [{ path: '/', meta: { title: '首页' }}].concat(matched)
+ matched = [{ path: '/', meta: { title: 'dashboard' }}].concat(matched)
}
this.levelList = matched
+ },
+ generateTitle(title) {
+ return this.$t('route.' + title)
}
},
watch: {
diff --git a/src/views/layout/components/TabsView.vue b/src/views/layout/components/TabsView.vue
index 28c1bcf4..04acca3e 100644
--- a/src/views/layout/components/TabsView.vue
+++ b/src/views/layout/components/TabsView.vue
@@ -1,13 +1,12 @@
-
- {{tag.title}}
+
+ {{$t('route.'+tag.title)}}
-