diff --git a/frontend/src/i18n/en_US.js b/frontend/src/i18n/en_US.js index beff603ea0..39e856ed50 100644 --- a/frontend/src/i18n/en_US.js +++ b/frontend/src/i18n/en_US.js @@ -14,13 +14,13 @@ const en_US = { 'cancel': 'Cancel', 'prompt': 'Prompt', 'operating': 'Operating', + 'input_limit': 'Within {0} and {1} characters', }, workspace: { 'create': 'Create Workspace', 'delete_confirm': 'Are you sure you want to delete this workspace?', 'add': 'Add Workspace', 'input_name': 'Please enter a workspace name', - 'input_name_2_50': '2 to 50 characters in length', 'search_by_name': 'Search by name', 'organization_name': 'Organization Name', 'please_choose_organization': 'Please Choose Organization', @@ -30,7 +30,6 @@ const en_US = { 'modify': 'Modify', 'delete_confirm': 'Are you sure you want to delete this workspace?', 'input_name': 'Please enter a organization name', - 'input_name_2_50': '2 to 50 characters in length', 'search_by_name': 'Search by name', 'special_characters_are_not_supported': 'Special characters are not supported', }, @@ -40,7 +39,6 @@ const en_US = { 'delete_confirm': 'Are you sure you want to delete this project?', 'search_by_name': 'Search by name', 'input_name': 'Please enter a workspace name', - 'input_name_2_50': '2 to 50 characters in length', }, i18n: { 'home': 'Home', diff --git a/frontend/src/i18n/zh_CN.js b/frontend/src/i18n/zh_CN.js index d02600b37b..265f8f57ad 100644 --- a/frontend/src/i18n/zh_CN.js +++ b/frontend/src/i18n/zh_CN.js @@ -21,7 +21,6 @@ const zh_CN = { 'delete_confirm': '这个工作空间确定要删除吗?', 'add': '添加工作空间', 'input_name': '请输入工作空间名称', - 'input_name_2_50': '长度在 2 到 50 个字符', 'search_by_name': '根据名称搜索', 'organization_name': '所属组织', 'please_choose_organization': '请选择组织', @@ -31,7 +30,6 @@ const zh_CN = { 'modify': '修改组织', 'delete_confirm': '这个组织确定要删除吗?', 'input_name': '请输入组织名称', - 'input_name_2_50': '长度在 2 到 50 个字符', 'search_by_name': '根据名称搜索', 'special_characters_are_not_supported': '不支持特殊字符', }, @@ -41,7 +39,6 @@ const zh_CN = { 'delete_confirm': '这个项目确定要删除吗?', 'search_by_name': '根据名称搜索', 'input_name': '请输入项目名称', - 'input_name_2_50': '长度在 2 到 50 个字符', }, i18n: { 'home': '首页', diff --git a/frontend/src/i18n/zh_TW.js b/frontend/src/i18n/zh_TW.js index a0e477287c..35e88623e5 100644 --- a/frontend/src/i18n/zh_TW.js +++ b/frontend/src/i18n/zh_TW.js @@ -17,7 +17,6 @@ const zh_TW = { 'delete_confirm': '这个工作空间确定要删除吗?', 'add': '添加工作空间', 'input_name': '请输入工作空间名称', - 'input_name_2_50': '长度在 2 到 50 个字符', 'search_by_name': '根据名称搜索', 'organization_name': '所属组织', 'please_choose_organization': '请选择组织', diff --git a/frontend/src/performance/components/project/MsProject.vue b/frontend/src/performance/components/project/MsProject.vue index 4882aee680..f2700f993a 100644 --- a/frontend/src/performance/components/project/MsProject.vue +++ b/frontend/src/performance/components/project/MsProject.vue @@ -82,7 +82,7 @@ rules: { name: [ {required: true, message: this.$t('project.input_name'), trigger: 'blur'}, - {min: 2, max: 50, message: this.$t('project.input_name_2_50'), trigger: 'blur'} + {min: 2, max: 50, message: this.$t('commons.input_limit', [2, 50]), trigger: 'blur'} ] }, } diff --git a/frontend/src/performance/components/settings/Organization.vue b/frontend/src/performance/components/settings/Organization.vue index 9a6c5ae54e..d2ce03923b 100644 --- a/frontend/src/performance/components/settings/Organization.vue +++ b/frontend/src/performance/components/settings/Organization.vue @@ -101,7 +101,7 @@ rule: { name: [ {required: true, message: this.$t('organization.input_name'), trigger: 'blur'}, - { min: 2, max: 10, message: this.$t('organization.input_name_2_50'), trigger: 'blur' }, + { min: 2, max: 10, message: this.$t('commons.input_limit', [2, 50]), trigger: 'blur' }, { required: true, pattern: /^[\u4e00-\u9fa5_a-zA-Z0-9.·-]+$/, @@ -110,7 +110,7 @@ } ], description: [ - { max: 50, message: this.$t('organization.input_name_2_50'), trigger: 'blur'} + { max: 50, message: this.$t('commons.input_limit', [0, 50]), trigger: 'blur'} ] } } diff --git a/frontend/src/performance/components/settings/Workspace.vue b/frontend/src/performance/components/settings/Workspace.vue index 42af8aa707..04b25ade5a 100644 --- a/frontend/src/performance/components/settings/Workspace.vue +++ b/frontend/src/performance/components/settings/Workspace.vue @@ -153,7 +153,7 @@ rules: { name: [ {required: true, message: this.$t('workspace.input_name'), trigger: 'blur'}, - {min: 2, max: 50, message: this.$t('workspace.input_name_2_50'), trigger: 'blur'} + {min: 2, max: 50, message: this.$t('commons.input_limit', [2, 50]), trigger: 'blur'} ] }, }