From 6c6821df20aae6d83152436e5b6d5610d95f982c Mon Sep 17 00:00:00 2001 From: shaohuzhang1 <80892890+shaohuzhang1@users.noreply.github.com> Date: Sat, 8 Feb 2025 17:30:36 +0800 Subject: [PATCH] fix: refine translation (#2165) Co-authored-by: wangdan-fit2cloud --- .../ai-chat/ExecutionDetailDialog.vue | 26 ++++++++----------- ui/src/locales/lang/en-US/ai-chat.ts | 2 -- ui/src/locales/lang/en-US/common.ts | 5 ++++ .../lang/en-US/views/application-workflow.ts | 15 ++++++++--- .../locales/lang/en-US/views/application.ts | 2 -- ui/src/locales/lang/en-US/views/document.ts | 5 ++-- .../locales/lang/en-US/views/function-lib.ts | 10 +++---- ui/src/locales/lang/en-US/views/paragraph.ts | 5 ++-- ui/src/locales/lang/en-US/views/system.ts | 8 +++--- ui/src/locales/lang/zh-CN/ai-chat.ts | 2 -- ui/src/locales/lang/zh-CN/common.ts | 7 +++-- .../lang/zh-CN/views/application-workflow.ts | 7 +++++ .../locales/lang/zh-CN/views/application.ts | 2 -- ui/src/locales/lang/zh-CN/views/document.ts | 3 ++- .../locales/lang/zh-CN/views/function-lib.ts | 10 +++---- ui/src/locales/lang/zh-CN/views/paragraph.ts | 1 + ui/src/locales/lang/zh-Hant/ai-chat.ts | 2 -- ui/src/locales/lang/zh-Hant/common.ts | 6 ++++- .../zh-Hant/views/application-workflow.ts | 8 +++++- .../locales/lang/zh-Hant/views/application.ts | 2 -- ui/src/locales/lang/zh-Hant/views/document.ts | 4 +-- .../lang/zh-Hant/views/function-lib.ts | 10 +++---- .../locales/lang/zh-Hant/views/paragraph.ts | 1 + .../views/application/ApplicationSetting.vue | 2 +- .../component/AccessSettingDrawer.vue | 8 +++--- ui/src/views/dataset/index.vue | 4 +-- ui/src/views/document/index.vue | 8 +++--- .../component/FunctionDebugDrawer.vue | 6 ++--- .../component/FunctionFormDrawer.vue | 4 +-- ui/src/views/paragraph/index.vue | 2 +- ui/src/workflow/common/NodeContainer.vue | 2 +- ui/src/workflow/common/data.ts | 4 +-- ui/src/workflow/nodes/base-node/index.vue | 4 +-- ui/src/workflow/nodes/form-node/index.vue | 4 +-- .../nodes/function-lib-node/index.vue | 15 ++++++++--- ui/src/workflow/nodes/function-node/index.vue | 10 ++++--- 36 files changed, 117 insertions(+), 99 deletions(-) diff --git a/ui/src/components/ai-chat/ExecutionDetailDialog.vue b/ui/src/components/ai-chat/ExecutionDetailDialog.vue index dd572cb04..263c4feb1 100644 --- a/ui/src/components/ai-chat/ExecutionDetailDialog.vue +++ b/ui/src/components/ai-chat/ExecutionDetailDialog.vue @@ -57,7 +57,7 @@ >
- {{ $t('chat.executionDetails.paramInput') }} + {{ $t('common.param.inputParam') }}
@@ -218,7 +218,7 @@
{{ item.type == WorkflowType.Application - ? $t('chat.executionDetails.paramOutput') + ? $t('common.param.outputParam') : $t('chat.executionDetails.answer') }}
@@ -260,9 +260,7 @@ diff --git a/ui/src/views/function-lib/component/FunctionFormDrawer.vue b/ui/src/views/function-lib/component/FunctionFormDrawer.vue index 253b93d5e..4ff1030c1 100644 --- a/ui/src/views/function-lib/component/FunctionFormDrawer.vue +++ b/ui/src/views/function-lib/component/FunctionFormDrawer.vue @@ -67,7 +67,7 @@

- {{ $t('views.functionLib.functionForm.form.inputParam.label') }} + {{ $t('common.param.inputParam') }} {{ $t('views.functionLib.functionForm.form.param.paramInfo1') }} @@ -141,7 +141,7 @@

- {{ $t('views.functionLib.functionForm.form.param.outputParam') }} + {{ $t('common.param.outputParam') }} {{ $t('views.functionLib.functionForm.form.param.paramInfo1') }} diff --git a/ui/src/views/paragraph/index.vue b/ui/src/views/paragraph/index.vue index 475c3d520..f3a75d0d3 100644 --- a/ui/src/views/paragraph/index.vue +++ b/ui/src/views/paragraph/index.vue @@ -34,7 +34,7 @@ v-loading="(paginationConfig.current_page === 1 && loading) || changeStateloading" >
- {{ paginationConfig.total }} {{ $t('views.paragraph.title') }} + {{ paginationConfig.total }} {{ $t('views.paragraph.paragraph_count') }}