From d82abbef234142970659bf7211131d01661e6180 Mon Sep 17 00:00:00 2001 From: Joel Date: Thu, 17 Jul 2025 17:10:04 +0800 Subject: [PATCH] chore: 18n --- .../config/automatic/get-automatic-res.tsx | 9 +++++---- .../config/automatic/instruction-editor.tsx | 13 +++++-------- web/i18n/en-US/app-debug.ts | 9 ++++++++- web/i18n/zh-Hans/app-debug.ts | 9 ++++++++- 4 files changed, 26 insertions(+), 14 deletions(-) diff --git a/web/app/components/app/configuration/config/automatic/get-automatic-res.tsx b/web/app/components/app/configuration/config/automatic/get-automatic-res.tsx index c8f801663a..ef828b4ea7 100644 --- a/web/app/components/app/configuration/config/automatic/get-automatic-res.tsx +++ b/web/app/components/app/configuration/config/automatic/get-automatic-res.tsx @@ -44,6 +44,7 @@ import type { Node, NodeOutPutVar } from '@/app/components/workflow/types' import type { GeneratorType } from './types' import { ArrowDownRoundFill } from '@/app/components/base/icons/src/vender/solid/general' +const i18nPrefix = 'appDebug.generate' export type IGetAutomaticResProps = { mode: AppType isShow: boolean @@ -310,14 +311,14 @@ const GetAutomaticRes: FC = ({ className='mb-1.5 flex cursor-pointer items-center text-sm font-medium leading-5 text-text-primary' onClick={toggleFoldIdeaOutput} > -
Idea output
-
(option)
+
{t(`${i18nPrefix}.ideaOutput`)}
+
({t(`${i18nPrefix}.optional`)})
{ !isFoldIdeaOutput && (