From fe435c23c32eb5fda407d8349183cb08117e3f69 Mon Sep 17 00:00:00 2001 From: zxhlyh Date: Thu, 22 May 2025 17:43:37 +0800 Subject: [PATCH] i18n --- .../rag-pipeline/hooks/use-available-nodes-meta-data.ts | 1 + web/i18n/en-US/workflow.ts | 2 ++ web/i18n/zh-Hans/workflow.ts | 2 ++ 3 files changed, 5 insertions(+) diff --git a/web/app/components/rag-pipeline/hooks/use-available-nodes-meta-data.ts b/web/app/components/rag-pipeline/hooks/use-available-nodes-meta-data.ts index 64d1e51b57..ac35df2720 100644 --- a/web/app/components/rag-pipeline/hooks/use-available-nodes-meta-data.ts +++ b/web/app/components/rag-pipeline/hooks/use-available-nodes-meta-data.ts @@ -17,6 +17,7 @@ export const useAvailableNodesMetaData = () => { metaData: { ...dataSourceDefault.metaData, isStart: true, + isRequired: true, }, }, { diff --git a/web/i18n/en-US/workflow.ts b/web/i18n/en-US/workflow.ts index 81726464a4..db578d940b 100644 --- a/web/i18n/en-US/workflow.ts +++ b/web/i18n/en-US/workflow.ts @@ -256,6 +256,7 @@ const translation = { 'loop': 'Loop', 'loop-end': 'Exit Loop', 'knowledge-index': 'Knowledge Base', + 'data-source': 'Data Source', }, blocksAbout: { 'start': 'Define the initial parameters for launching a workflow', @@ -279,6 +280,7 @@ const translation = { 'list-operator': 'Used to filter or sort array content.', 'agent': 'Invoking large language models to answer questions or process natural language', 'knowledge-index': 'Knowledge Base About', + 'data-source': 'Data Source About', }, operator: { zoomIn: 'Zoom In', diff --git a/web/i18n/zh-Hans/workflow.ts b/web/i18n/zh-Hans/workflow.ts index 1d854c4749..54cd596268 100644 --- a/web/i18n/zh-Hans/workflow.ts +++ b/web/i18n/zh-Hans/workflow.ts @@ -257,6 +257,7 @@ const translation = { 'loop': '循环', 'loop-end': '退出循环', 'knowledge-index': '知识库', + 'data-source': '数据源', }, blocksAbout: { 'start': '定义一个 workflow 流程启动的初始参数', @@ -280,6 +281,7 @@ const translation = { 'list-operator': '用于过滤或排序数组内容。', 'agent': '调用大型语言模型回答问题或处理自然语言', 'knowledge-index': '知识库节点', + 'data-source': '数据源节点', }, operator: { zoomIn: '放大',