From 96e275c09520ffc0138fc0700f7b1cb63a8f736b Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Wed, 13 May 2020 17:58:26 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E8=A7=92=E8=89=B2=E5=9B=BD?= =?UTF-8?q?=E9=99=85=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/business/components/common/components/MsRolesTag.vue | 2 +- .../src/business/components/common/head/LanguageSwitch.vue | 1 - frontend/src/i18n/en-US.js | 5 +++++ frontend/src/i18n/zh-CN.js | 5 +++++ 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/frontend/src/business/components/common/components/MsRolesTag.vue b/frontend/src/business/components/common/components/MsRolesTag.vue index a51f13c988..79c3e406bc 100644 --- a/frontend/src/business/components/common/components/MsRolesTag.vue +++ b/frontend/src/business/components/common/components/MsRolesTag.vue @@ -4,7 +4,7 @@ :key="index" :effect="effect" :type="type" - :content="role.name"/> + :content="$t('role.' + role.id)"/> diff --git a/frontend/src/business/components/common/head/LanguageSwitch.vue b/frontend/src/business/components/common/head/LanguageSwitch.vue index 24b4c5a255..9afceaa119 100644 --- a/frontend/src/business/components/common/head/LanguageSwitch.vue +++ b/frontend/src/business/components/common/head/LanguageSwitch.vue @@ -67,7 +67,6 @@ language: language }; this.result = this.$post("/user/update/current", user, response => { - this.$success(this.$t('commons.modify_success')); localStorage.setItem(TokenKey, JSON.stringify(response.data)); window.location.reload(); }); diff --git a/frontend/src/i18n/en-US.js b/frontend/src/i18n/en-US.js index c55b714705..d7e8e2bb9f 100644 --- a/frontend/src/i18n/en-US.js +++ b/frontend/src/i18n/en-US.js @@ -124,6 +124,11 @@ export default { }, role: { 'please_choose_role': 'Please Choose Role', + 'admin': 'Admin', + 'org_admin': 'Org_Admin', + 'test_manager': 'Test_Manager', + 'test_user': 'Test_User', + 'test_viewer': 'Test_Viewer', }, report: { 'recent': 'Recent Report', diff --git a/frontend/src/i18n/zh-CN.js b/frontend/src/i18n/zh-CN.js index e4683ce67b..be9761be13 100644 --- a/frontend/src/i18n/zh-CN.js +++ b/frontend/src/i18n/zh-CN.js @@ -124,6 +124,11 @@ export default { }, role: { 'please_choose_role': '请选择角色', + 'admin': '系统管理员', + 'org_admin': '组织管理员', + 'test_manager': '测试经理', + 'test_user': '测试人员', + 'test_viewer': 'Viewer' }, report: { 'recent': '最近的报告',