RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.
Go agent-harnessagent-native-databaseagentic-aiagentic-retrievalagentic-searchaiai-agentscontext-enginecontext-engineeringcontext-managementharness-engineeringknowledge-compilationragretrieval-augmented-generationretrieval-harnesssearch-harness
i18n: localize visual input file label in agent form (#16594)
euvre4effd057f027
diff --git a/web/src/locales/en.ts b/web/src/locales/en.tsindex 9214670714..4a4b47acdd 100644--- a/web/src/locales/en.ts+++ b/web/src/locales/en.ts@@ -2018,6 +2018,7 @@ Best for: Documents with flowing, contextually connected content — such as boorecommended: 'Recommended',customerSupport: 'Customer support',marketing: 'Marketing',+ visualInputFile: 'Visual input file',consumerApp: 'Consumer app',other: 'Other',ingestionPipeline: 'Ingestion pipeline',diff --git a/web/src/locales/zh.ts b/web/src/locales/zh.tsindex 4692728763..c4aa22fe59 100644--- a/web/src/locales/zh.ts+++ b/web/src/locales/zh.ts@@ -1678,6 +1678,7 @@ NER:使用 spaCy NER 和基于规则的关键词提取来抽取实体和关系recommended: '推荐',customerSupport: '客户支持',marketing: '营销',+ visualInputFile: '视觉输入文件',consumerApp: '消费者应用',other: '其他',agents: '智能体',diff --git a/web/src/pages/agent/form/agent-form/index.tsx b/web/src/pages/agent/form/agent-form/index.tsxindex 7bdd16ad6d..169df8e2eb 100644--- a/web/src/pages/agent/form/agent-form/index.tsx+++ b/web/src/pages/agent/form/agent-form/index.tsx@@ -164,7 +164,7 @@ function AgentForm({ node }: INextOperatorForm) {) && (<QueryVariablename="visual_files_var"- label="Visual Input File"+ label={t('flow.visualInputFile')}types={[VariableType.File]}></QueryVariable>)}diff --git a/web/src/pages/agent/form/components/query-variable.tsx b/web/src/pages/agent/form/components/query-variable.tsxindex 43f3bf1e52..a6eef62451 100644--- a/web/src/pages/agent/form/components/query-variable.tsx+++ b/web/src/pages/agent/form/components/query-variable.tsx@@ -76,9 +76,9 @@ export function QueryVariable({name={name}render={({ field }) => (<FormItem className={className}>- {hideLabel || label || (- <FormLabel tooltip={t('flow.queryTip')}>- {t('flow.query')}+ {hideLabel || (+ <FormLabel tooltip={label ? undefined : t('flow.queryTip')}>+ {label || t('flow.query')}</FormLabel>)}<FormControl>{renderWidget(field.value, field.onChange)}</FormControl>