i18n: localize visual input file label in agent form (#16594)

This commit is contained in:
euvre
2026-07-03 15:31:27 +08:00
committed by GitHub
parent a4c370c5ba
commit 4effd057f0
4 changed files with 6 additions and 4 deletions

View File

@@ -2018,6 +2018,7 @@ Best for: Documents with flowing, contextually connected content — such as boo
recommended: 'Recommended',
customerSupport: 'Customer support',
marketing: 'Marketing',
visualInputFile: 'Visual input file',
consumerApp: 'Consumer app',
other: 'Other',
ingestionPipeline: 'Ingestion pipeline',

View File

@@ -1678,6 +1678,7 @@ NER使用 spaCy NER 和基于规则的关键词提取来抽取实体和关系
recommended: '推荐',
customerSupport: '客户支持',
marketing: '营销',
visualInputFile: '视觉输入文件',
consumerApp: '消费者应用',
other: '其他',
agents: '智能体',

View File

@@ -164,7 +164,7 @@ function AgentForm({ node }: INextOperatorForm) {
) && (
<QueryVariable
name="visual_files_var"
label="Visual Input File"
label={t('flow.visualInputFile')}
types={[VariableType.File]}
></QueryVariable>
)}

View File

@@ -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>