From 10346366cd2758df2930dd77188169a615728954 Mon Sep 17 00:00:00 2001 From: "Captain.B" Date: Fri, 6 Mar 2020 16:19:12 +0800 Subject: [PATCH 1/2] i18n --- frontend/src/i18n/en-US.js | 5 ++++ frontend/src/i18n/zh-CN.js | 4 +++ .../components/settings/SettingMenu.vue | 26 ++++++++++--------- 3 files changed, 23 insertions(+), 12 deletions(-) diff --git a/frontend/src/i18n/en-US.js b/frontend/src/i18n/en-US.js index 2029e89a5a..3299c7033f 100644 --- a/frontend/src/i18n/en-US.js +++ b/frontend/src/i18n/en-US.js @@ -33,6 +33,10 @@ export default { 'status': 'Enable/Disable', 'show_all': 'Show All', 'report': 'Report', + 'user': 'User', + 'system': 'System', + 'personal_setting': 'Personal Setting', + 'test_resource_pool': 'Resource Pool', }, workspace: { 'create': 'Create Workspace', @@ -71,6 +75,7 @@ export default { 'search_by_name': 'Search by name', 'modify_personal_info': 'Modify Personal Information', 'input_name': 'Please enter a user name', + 'input_email': 'Please enter a email', 'special_characters_are_not_supported': 'Special characters are not supported', 'mobile_number_format_is_incorrect': 'Mobile number format is incorrect', 'email_format_is_incorrect': 'Email format is incorrect', diff --git a/frontend/src/i18n/zh-CN.js b/frontend/src/i18n/zh-CN.js index a2d739794d..c216833d36 100644 --- a/frontend/src/i18n/zh-CN.js +++ b/frontend/src/i18n/zh-CN.js @@ -33,6 +33,10 @@ export default { 'status': '启用/禁用', 'show_all': '显示全部', 'report': '报告', + 'user': '用户', + 'system': '系统', + 'personal_setting': '个人设置', + 'test_resource_pool': '测试资源池', }, workspace: { 'create': '创建工作空间', diff --git a/frontend/src/performance/components/settings/SettingMenu.vue b/frontend/src/performance/components/settings/SettingMenu.vue index 0e1a860b8f..22b0fac87e 100644 --- a/frontend/src/performance/components/settings/SettingMenu.vue +++ b/frontend/src/performance/components/settings/SettingMenu.vue @@ -3,37 +3,39 @@ - 用户 - 组织 - 工作空间 - 测试资源池 + {{$t('commons.user')}} + {{$t('commons.organization')}} + {{$t('commons.workspace')}} + {{$t('commons.test_resource_pool')}} - 成员 - 工作空间 + {{$t('commons.member')}} + + {{$t('commons.workspace')}} + - 成员 + {{$t('commons.member')}} - 个人设置 + {{$t('commons.personal_setting')}} From ea2c192d15e0928c631695ca6fb0ed4bea1284dd Mon Sep 17 00:00:00 2001 From: "Captain.B" Date: Fri, 6 Mar 2020 16:24:27 +0800 Subject: [PATCH 2/2] i18n --- frontend/src/i18n/en-US.js | 3 +++ frontend/src/i18n/zh-CN.js | 3 +++ frontend/src/performance/components/HeaderTopMenus.vue | 8 +++++--- .../components/settings/workspace/WorkspaceMember.vue | 2 +- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/frontend/src/i18n/en-US.js b/frontend/src/i18n/en-US.js index 3299c7033f..cececec2f3 100644 --- a/frontend/src/i18n/en-US.js +++ b/frontend/src/i18n/en-US.js @@ -37,6 +37,9 @@ export default { 'system': 'System', 'personal_setting': 'Personal Setting', 'test_resource_pool': 'Resource Pool', + 'system_setting': 'Settings', + 'functional': 'Functional', + 'performance': 'Performance', }, workspace: { 'create': 'Create Workspace', diff --git a/frontend/src/i18n/zh-CN.js b/frontend/src/i18n/zh-CN.js index c216833d36..5a68c7f63b 100644 --- a/frontend/src/i18n/zh-CN.js +++ b/frontend/src/i18n/zh-CN.js @@ -37,6 +37,9 @@ export default { 'system': '系统', 'personal_setting': '个人设置', 'test_resource_pool': '测试资源池', + 'system_setting': '系统设置', + 'functional': '功能测试', + 'performance': '性能测试', }, workspace: { 'create': '创建工作空间', diff --git a/frontend/src/performance/components/HeaderTopMenus.vue b/frontend/src/performance/components/HeaderTopMenus.vue index 55d6cd0bbf..ba9af2b3cc 100644 --- a/frontend/src/performance/components/HeaderTopMenus.vue +++ b/frontend/src/performance/components/HeaderTopMenus.vue @@ -8,13 +8,15 @@ @select="handleSelect" router> - 功能测试 + {{$t('commons.functional')}} - 性能测试 + {{$t('commons.performance')}} + + + {{$t('commons.system_setting')}} - 系统设置 diff --git a/frontend/src/performance/components/settings/workspace/WorkspaceMember.vue b/frontend/src/performance/components/settings/workspace/WorkspaceMember.vue index 00e5b0ae6c..cfa97155d7 100644 --- a/frontend/src/performance/components/settings/workspace/WorkspaceMember.vue +++ b/frontend/src/performance/components/settings/workspace/WorkspaceMember.vue @@ -3,7 +3,7 @@
- 成员 + {{$t('commons.member')}}