mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-04 01:29:35 +08:00
i18n: localize visual input file label in agent form (#16594)
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -1678,6 +1678,7 @@ NER:使用 spaCy NER 和基于规则的关键词提取来抽取实体和关系
|
||||
recommended: '推荐',
|
||||
customerSupport: '客户支持',
|
||||
marketing: '营销',
|
||||
visualInputFile: '视觉输入文件',
|
||||
consumerApp: '消费者应用',
|
||||
other: '其他',
|
||||
agents: '智能体',
|
||||
|
||||
@@ -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>
|
||||
)}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user