From 64d449952df2cadfbbd61264c63b58fc04c7f564 Mon Sep 17 00:00:00 2001 From: Amy0104 <97265214+Amy0104@users.noreply.github.com> Date: Thu, 24 Mar 2022 18:43:57 +0800 Subject: [PATCH] [Fix][UI Next][V1.0.0-Alpha] Fix the unlimited label in the language pack configuration in DATAX. (#9167) --- .../src/locales/modules/en_US.ts | 13 ++++++++----- .../src/locales/modules/zh_CN.ts | 6 ++++-- .../task/components/node/fields/use-datax.ts | 4 ++-- 3 files changed, 14 insertions(+), 9 deletions(-) diff --git a/dolphinscheduler-ui-next/src/locales/modules/en_US.ts b/dolphinscheduler-ui-next/src/locales/modules/en_US.ts index 4f8918c712..2222ba120e 100644 --- a/dolphinscheduler-ui-next/src/locales/modules/en_US.ts +++ b/dolphinscheduler-ui-next/src/locales/modules/en_US.ts @@ -517,8 +517,10 @@ const project = { related_items: 'Related items', project_name: 'Project Name', project_tips: 'Please select project name', - workflow_relation_no_data_result_title: 'Can not find any relations of workflows.', - workflow_relation_no_data_result_desc: 'There is not any workflows. Please create a workflow, and then visit this page again.', + workflow_relation_no_data_result_title: + 'Can not find any relations of workflows.', + workflow_relation_no_data_result_desc: + 'There is not any workflows. Please create a workflow, and then visit this page again.' }, task: { online: 'Online', @@ -816,9 +818,9 @@ const project = { switch_branch_flow: 'Branch Flow', and: 'and', or: 'or', - datax_custom_template: 'Custom Template Switch', + datax_custom_template: 'Custom Template', datax_json_template: 'JSON', - datax_target_datasource_type: 'Target Datasource Type', + datax_target_datasource_type: 'Target Datasource Types', datax_target_database: 'Target Database', datax_target_table: 'Target Table', datax_target_table_tips: 'Please enter the name of the target table', @@ -919,7 +921,8 @@ const project = { integer_tips: 'Please enter a positive integer', sql_parameter: 'SQL Parameter', format_tips: 'Please enter format', - udf_function: 'UDF Function' + udf_function: 'UDF Function', + unlimited: 'unlimited' } } diff --git a/dolphinscheduler-ui-next/src/locales/modules/zh_CN.ts b/dolphinscheduler-ui-next/src/locales/modules/zh_CN.ts index a837b7a6d6..1bf49c4bd1 100644 --- a/dolphinscheduler-ui-next/src/locales/modules/zh_CN.ts +++ b/dolphinscheduler-ui-next/src/locales/modules/zh_CN.ts @@ -515,7 +515,8 @@ const project = { project_name: '项目名称', project_tips: '请选择项目', workflow_relation_no_data_result_title: '工作流关系不存在', - workflow_relation_no_data_result_desc: '目前没有任何工作流,请先创建工作流,再访问该页面', + workflow_relation_no_data_result_desc: + '目前没有任何工作流,请先创建工作流,再访问该页面' }, task: { online: '已上线', @@ -909,7 +910,8 @@ const project = { integer_tips: '请输入一个正整数', sql_parameter: 'sql参数', format_tips: '请输入格式为', - udf_function: 'UDF函数' + udf_function: 'UDF函数', + unlimited: '不限制' } } diff --git a/dolphinscheduler-ui-next/src/views/projects/task/components/node/fields/use-datax.ts b/dolphinscheduler-ui-next/src/views/projects/task/components/node/fields/use-datax.ts index 9bd25a0336..ef80e05583 100644 --- a/dolphinscheduler-ui-next/src/views/projects/task/components/node/fields/use-datax.ts +++ b/dolphinscheduler-ui-next/src/views/projects/task/components/node/fields/use-datax.ts @@ -76,7 +76,7 @@ export function useDataX(model: { [field: string]: any }): IJsonItem[] { const destinationDatasourceOptions = ref([] as any) const jobSpeedByteOptions: any[] = [ { - label: '不限制', + label: `0(${t('project.node.unlimited')})`, value: 0 }, { @@ -102,7 +102,7 @@ export function useDataX(model: { [field: string]: any }): IJsonItem[] { ] const jobSpeedRecordOptions: any[] = [ { - label: '不限制', + label: `0(${t('project.node.unlimited')})`, value: 0 }, {