From e0b7f48b6b4bc6b7a68d9d277258aab0c2f15b95 Mon Sep 17 00:00:00 2001 From: AkaraChen Date: Thu, 26 Dec 2024 13:02:00 +0800 Subject: [PATCH] chore: add i18n str --- .../nodes/_base/components/agent-strategy-selector.tsx | 5 +++-- web/i18n/en-US/workflow.ts | 1 + web/i18n/zh-Hans/workflow.ts | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/web/app/components/workflow/nodes/_base/components/agent-strategy-selector.tsx b/web/app/components/workflow/nodes/_base/components/agent-strategy-selector.tsx index 2e907ad1ad..5da5c8ae7c 100644 --- a/web/app/components/workflow/nodes/_base/components/agent-strategy-selector.tsx +++ b/web/app/components/workflow/nodes/_base/components/agent-strategy-selector.tsx @@ -114,10 +114,11 @@ export const AgentStrategySelector = (props: AgentStrategySelectorProps) => {
- +
+ {/* TODO: fix when in list view show workflow as group label */} { setOpen(false) }} hasSearchText={false} - showWorkflowEmpty + showWorkflowEmpty={false} className='max-w-none' indexBarClassName='top-0 xl:top-36' /> diff --git a/web/i18n/en-US/workflow.ts b/web/i18n/en-US/workflow.ts index 64339e8c03..ecce13b5b2 100644 --- a/web/i18n/en-US/workflow.ts +++ b/web/i18n/en-US/workflow.ts @@ -704,6 +704,7 @@ const translation = { configureTip: 'Please configure agentic strategy.', configureTipDesc: 'After configuring the agentic strategy, this node will automatically load the remaining configurations. The strategy will affect the mechanism of multi-step tool reasoning. ', selectTip: 'Select agentic strategy', + searchPlaceholder: 'Search agentic strategy', }, learnMore: 'Learn more', pluginNotInstalled: 'This plugin is not installed', diff --git a/web/i18n/zh-Hans/workflow.ts b/web/i18n/zh-Hans/workflow.ts index 731b27e9c2..0935791136 100644 --- a/web/i18n/zh-Hans/workflow.ts +++ b/web/i18n/zh-Hans/workflow.ts @@ -704,6 +704,7 @@ const translation = { configureTip: '请配置 Agent 策略。', configureTipDesc: '配置完成后,此节点将自动加载剩余配置。策略将影响多步工具推理的机制。', selectTip: '选择 Agent 策略', + searchPlaceholder: '搜索 Agent 策略', }, learnMore: '了解更多', pluginNotInstalled: '插件未安装',