From 04c153277bc3a3effb9ad2fb6afe29b5758d28c0 Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Sun, 26 Jan 2025 12:08:10 +0800 Subject: [PATCH] perf: optimize text --- ui/src/locales/lang/en-US/common.ts | 2 +- ui/src/locales/lang/en-US/layout.ts | 2 +- ui/src/workflow/nodes/ai-chat-node/index.vue | 2 +- ui/src/workflow/nodes/image-generate/index.vue | 12 ++++++++---- ui/src/workflow/nodes/image-understand/index.vue | 2 +- ui/src/workflow/nodes/question-node/index.vue | 2 +- ui/src/workflow/nodes/text-to-speech-node/index.vue | 2 +- 7 files changed, 14 insertions(+), 10 deletions(-) diff --git a/ui/src/locales/lang/en-US/common.ts b/ui/src/locales/lang/en-US/common.ts index b43599268..6734def1a 100644 --- a/ui/src/locales/lang/en-US/common.ts +++ b/ui/src/locales/lang/en-US/common.ts @@ -17,7 +17,7 @@ export default { modify: 'Modify', modifySuccess: 'Modify successful', cancel: 'Cancel', - confirm: 'Confirm', + confirm: 'OK', tip: 'Prompt', add: 'Add', refresh: 'Refresh', diff --git a/ui/src/locales/lang/en-US/layout.ts b/ui/src/locales/lang/en-US/layout.ts index c4fc2a277..aaa4a8c6d 100644 --- a/ui/src/locales/lang/en-US/layout.ts +++ b/ui/src/locales/lang/en-US/layout.ts @@ -2,7 +2,7 @@ export default { github: 'Project Address', wiki: 'User Manual', forum: 'Forum For Help', - logout: 'Logout', + logout: 'Log Out', apiKey: 'API Key', apiServiceAddress: 'API Service Address', language: 'Language', diff --git a/ui/src/workflow/nodes/ai-chat-node/index.vue b/ui/src/workflow/nodes/ai-chat-node/index.vue index 2bc89d495..4e301398b 100644 --- a/ui/src/workflow/nodes/ai-chat-node/index.vue +++ b/ui/src/workflow/nodes/ai-chat-node/index.vue @@ -36,7 +36,7 @@ @click="openAIParamSettingDialog(chat_data.model_id)" @refreshForm="refreshParam" > - {{ $t('common.paramSetting') }} + diff --git a/ui/src/workflow/nodes/image-generate/index.vue b/ui/src/workflow/nodes/image-generate/index.vue index a217ffcb2..e9c046c4c 100644 --- a/ui/src/workflow/nodes/image-generate/index.vue +++ b/ui/src/workflow/nodes/image-generate/index.vue @@ -35,7 +35,7 @@ @click="openAIParamSettingDialog(form_data.model_id)" @refreshForm="refreshParam" > - {{ $t('common.paramSetting') }} + @@ -103,7 +103,9 @@ @@ -111,9 +113,11 @@ diff --git a/ui/src/workflow/nodes/image-understand/index.vue b/ui/src/workflow/nodes/image-understand/index.vue index 56eb4e3af..7e5e0bd99 100644 --- a/ui/src/workflow/nodes/image-understand/index.vue +++ b/ui/src/workflow/nodes/image-understand/index.vue @@ -37,7 +37,7 @@ @click="openAIParamSettingDialog(form_data.model_id)" @refreshForm="refreshParam" > - {{ $t('common.paramSetting') }} + diff --git a/ui/src/workflow/nodes/question-node/index.vue b/ui/src/workflow/nodes/question-node/index.vue index e98e625e9..95e1ce8fc 100644 --- a/ui/src/workflow/nodes/question-node/index.vue +++ b/ui/src/workflow/nodes/question-node/index.vue @@ -36,7 +36,7 @@ @click="openAIParamSettingDialog(form_data.model_id)" @refreshForm="refreshParam" > - {{ $t('common.paramSetting') }} + diff --git a/ui/src/workflow/nodes/text-to-speech-node/index.vue b/ui/src/workflow/nodes/text-to-speech-node/index.vue index 0d0563000..57c40e3ed 100644 --- a/ui/src/workflow/nodes/text-to-speech-node/index.vue +++ b/ui/src/workflow/nodes/text-to-speech-node/index.vue @@ -35,7 +35,7 @@ :disabled="!form_data.tts_model_id" class="mr-4" > - {{ $t('common.paramSetting') }} +