From 9e57f0f18bd634031662e755fcbe4fab35fc3a81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=8D=E5=81=9A=E7=A0=81=E5=86=9C?= <599854767@qq.com> Date: Sat, 7 May 2022 13:35:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=8A=A0=E5=A4=9A=E8=AF=AD?= =?UTF-8?q?=E8=A8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/i18n/lang/en.js | 50 ++++++++++++++++--- src/i18n/lang/zh-cn.js | 38 +++++++++++++- src/i18n/lang/zh-tw.js | 40 +++++++++++++-- src/layout/components/Sidebar/SidebarItem.vue | 8 ++- src/layout/components/TagsView/index.vue | 15 +++--- src/router/index.js | 6 +-- 6 files changed, 132 insertions(+), 25 deletions(-) diff --git a/src/i18n/lang/en.js b/src/i18n/lang/en.js index e06a6d3..7f03972 100644 --- a/src/i18n/lang/en.js +++ b/src/i18n/lang/en.js @@ -1,14 +1,36 @@ // 定义内容 export default { menu: { - home: 'home', - system: 'system', - systemMenu: 'systemMenu', - systemRole: 'systemRole', - systemUser: 'systemUser', - systemDept: 'systemDept', - systemDic: 'systemDic', - limits: 'limits', + home: 'Home', + dashboard: 'Dashboard', + system: 'System', + monitoring: 'Monitoring', + systemTools: 'Tools', + externalOpen: 'ExternalOpen', + icon: 'Icon', + systemMenu: 'Menu', + systemRole: 'Role', + systemUser: 'User', + systemDept: 'Dept', + systemDic: 'Dict', + systemPost: 'Post', + systemParam: 'Param', + systemLog: 'Log', + operLog: 'Oper log', + loginLog: 'Login log', + systemNotice: 'Notice', + systemLang: 'Language set', + timedTask: 'TimedTask', + serviceMonitor: 'serviceMonitor', + codeGeneration: 'codeGeneration', + systemInterface: 'systemInterface', + sendEmail: 'Email', + systemArticle: 'Article', + articleList: 'Article list', + formBuild: 'Form building', + officialWebsite: 'Official website', + fileStorage: 'File Storage', + personalCenter: 'Personal' }, tagsView: { refresh: 'refresh', @@ -60,5 +82,17 @@ export default { edit: 'Edit', search: 'Search', reset: 'Reset', + preview: 'preview', + import: 'import', + export: 'export', + synchronize: 'synchronize', + generateCode: 'generateCode', + start: 'start', + stop: 'stop', + runOnce: 'runOnce', + log: 'log', + expand: 'expand', + collapse: 'collapse', + details: 'details' } }; \ No newline at end of file diff --git a/src/i18n/lang/zh-cn.js b/src/i18n/lang/zh-cn.js index 711a2c6..5ca3763 100644 --- a/src/i18n/lang/zh-cn.js +++ b/src/i18n/lang/zh-cn.js @@ -2,13 +2,35 @@ export default { menu: { home: '首页', - system: '系统设置', + dashboard: '控制台', + system: '系统管理', + monitoring: '系统监控', + systemTools: '系统工具', + externalOpen: '外部打开', + icon: '图标icon', systemMenu: '菜单管理', systemRole: '角色管理', systemUser: '用户管理', systemDept: '部门管理', systemDic: '字典管理', - limits: '权限管理', + systemPost: '岗位管理', + systemParam: '参数设置', + systemLog: '日志管理', + operLog: '操作日志', + loginLog: '登录日志', + systemNotice: '通知公告', + systemLang: '多语言设置', + timedTask: '定时任务', + serviceMonitor: '服务监控', + codeGeneration: '代码生成', + systemInterface: '系统接口', + sendEmail: '发送邮件', + systemArticle: '文章管理', + articleList: '文章列表', + formBuild: '表单构建', + officialWebsite: '官网地址', + fileStorage: '文件存儲', + personalCenter: '个人中心' }, tagsView: { refresh: '刷新页面', @@ -60,5 +82,17 @@ export default { edit: '编辑', search: '搜索', reset: '重置', + preview: '预览', + import: '导入', + export: '导出', + synchronize: '同步', + generateCode: '生成代码', + start: '启动', + stop: '停止', + runOnce: '运行一次', + log: '日志', + expand: '展开', + collapse: '折叠', + details: '详细' } }; \ No newline at end of file diff --git a/src/i18n/lang/zh-tw.js b/src/i18n/lang/zh-tw.js index c46364f..1397990 100644 --- a/src/i18n/lang/zh-tw.js +++ b/src/i18n/lang/zh-tw.js @@ -2,13 +2,35 @@ export default { menu: { home: '首頁', - system: '系統設置', - systemMenu: '選單管理', + dashboard: '控制臺', + system: '系統管理', + monitoring: '系統監控', + systemTools: '系統工具', + externalOpen: '外部打開', + icon: '圖標icon', + systemMenu: '菜單管理', systemRole: '角色管理', systemUser: '用戶管理', systemDept: '部門管理', systemDic: '字典管理', - limits: '許可權管理', + systemPost: '崗位管理', + systemParam: '參數设置', + systemLog: '日誌管理', + operLog: '操作日誌', + loginLog: '登錄日誌', + systemNotice: '系統公告', + systemLang: '多語言设置', + timedTask: '定时任務', + serviceMonitor: '服務監控', + codeGeneration: '代碼生成', + systemInterface: '系統接口', + sendEmail: '發送郵件', + systemArticle: '文章管理', + articleList: '文章列表', + formBuild: '表單構建', + officialWebsite: '官網地址', + fileStorage: '文件存儲', + personalCenter: '個人中心' }, tagsView: { refresh: '重繪', @@ -60,5 +82,17 @@ export default { edit: '編輯', search: '搜索', reset: '重置', + preview: '預覽', + import: '導入', + export: '導出', + synchronize: '同步', + generateCode: '生成代碼', + start: '啟動', + stop: '停止', + runOnce: '運行一次', + log: '日誌', + expand: '展開', + collapse: '折疊', + details: '詳細' } }; \ No newline at end of file diff --git a/src/layout/components/Sidebar/SidebarItem.vue b/src/layout/components/Sidebar/SidebarItem.vue index 279eecb..7e0dd41 100644 --- a/src/layout/components/Sidebar/SidebarItem.vue +++ b/src/layout/components/Sidebar/SidebarItem.vue @@ -4,7 +4,10 @@ - diff --git a/src/router/index.js b/src/router/index.js index 1bd9229..af343bc 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -62,7 +62,7 @@ export const constantRoutes = [ path: '/index', component: () => import('@/views/index'), name: 'Index', - meta: { title: '首页', icon: 'dashboard', affix: true } + meta: { title: '首页', icon: 'dashboard', affix: true, titleKey: 'menu.home' } }] }, { @@ -75,7 +75,7 @@ export const constantRoutes = [ path: 'profile', component: () => import('@/views/system/user/profile/index'), name: 'Profile', - meta: { title: '个人中心', icon: 'user' } + meta: { title: '个人中心', icon: 'user', titleKey: 'menu.personalCenter' } }] }, // 不用可删掉 @@ -89,7 +89,7 @@ export const constantRoutes = [ path: 'icon', component: () => import('@/views/components/icons/index'), name: 'icon', - meta: { title: '图标icon', icon: 'icon1', noCache: 'fasle' } + meta: { title: '图标icon', icon: 'icon1', noCache: 'fasle', titleKey: 'menu.icon' } }] }, ];