You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by so...@apache.org on 2022/03/24 10:44:07 UTC

[dolphinscheduler] branch dev updated: [Fix][UI Next][V1.0.0-Alpha] Fix the unlimited label in the language pack configuration in DATAX. (#9167)

This is an automated email from the ASF dual-hosted git repository.

songjian pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git


The following commit(s) were added to refs/heads/dev by this push:
     new 64d4499  [Fix][UI Next][V1.0.0-Alpha] Fix the unlimited label in the language pack configuration in DATAX. (#9167)
64d4499 is described below

commit 64d449952df2cadfbbd61264c63b58fc04c7f564
Author: Amy0104 <97...@users.noreply.github.com>
AuthorDate: Thu Mar 24 18:43:57 2022 +0800

    [Fix][UI Next][V1.0.0-Alpha] Fix the unlimited label in the language pack configuration in DATAX. (#9167)
---
 dolphinscheduler-ui-next/src/locales/modules/en_US.ts       | 13 ++++++++-----
 dolphinscheduler-ui-next/src/locales/modules/zh_CN.ts       |  6 ++++--
 .../views/projects/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 4f8918c..2222ba1 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 a837b7a..1bf49c4 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 9bd25a0..ef80e05 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
     },
     {