From 00f91b5dc4b3d9827bee03f3d27c7f66210da050 Mon Sep 17 00:00:00 2001 From: Joel Date: Sun, 29 Sep 2024 14:57:25 +0800 Subject: [PATCH] chore: list fiter i18n --- web/app/components/base/input/index.tsx | 2 +- .../if-else/components/condition-list/condition-operator.tsx | 2 +- web/i18n/en-US/workflow.ts | 1 + web/i18n/zh-Hans/workflow.ts | 1 + 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/web/app/components/base/input/index.tsx b/web/app/components/base/input/index.tsx index cac5efd879..191dbde452 100644 --- a/web/app/components/base/input/index.tsx +++ b/web/app/components/base/input/index.tsx @@ -64,7 +64,7 @@ const Input = ({ destructive && 'bg-components-input-bg-destructive border-components-input-border-destructive text-components-input-text-filled hover:bg-components-input-bg-destructive hover:border-components-input-border-destructive focus:bg-components-input-bg-destructive focus:border-components-input-border-destructive', className, )} - placeholder={placeholder ?? (showLeftIcon ? t('common.operation.search') ?? '' : 'please input')} + placeholder={placeholder ?? (showLeftIcon ? t('common.operation.search') ?? '' : t('common.placeholder.input'))} value={value} onChange={onChange} disabled={disabled} diff --git a/web/app/components/workflow/nodes/if-else/components/condition-list/condition-operator.tsx b/web/app/components/workflow/nodes/if-else/components/condition-list/condition-operator.tsx index 97835e2666..7b3a2b9d27 100644 --- a/web/app/components/workflow/nodes/if-else/components/condition-list/condition-operator.tsx +++ b/web/app/components/workflow/nodes/if-else/components/condition-list/condition-operator.tsx @@ -65,7 +65,7 @@ const ConditionOperator = ({ { selectedOption ? selectedOption.label - : 'select' + : t(`${i18nPrefix}.select`) } diff --git a/web/i18n/en-US/workflow.ts b/web/i18n/en-US/workflow.ts index 241de9386b..8932e4111c 100644 --- a/web/i18n/en-US/workflow.ts +++ b/web/i18n/en-US/workflow.ts @@ -457,6 +457,7 @@ const translation = { conditionNotSetup: 'Condition NOT setup', selectVariable: 'Select variable...', addSubVariable: 'Sub Variable', + select: 'Select', }, variableAssigner: { title: 'Assign variables', diff --git a/web/i18n/zh-Hans/workflow.ts b/web/i18n/zh-Hans/workflow.ts index 20bb838dd3..0744357a89 100644 --- a/web/i18n/zh-Hans/workflow.ts +++ b/web/i18n/zh-Hans/workflow.ts @@ -457,6 +457,7 @@ const translation = { conditionNotSetup: '条件未设置', selectVariable: '选择变量', addSubVariable: '添加子变量', + select: '选择', }, variableAssigner: { title: '变量赋值',