Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: api based extension modal title (#2414)

zxhlyhf6059c377c8e
diff --git a/web/app/components/app/configuration/tools/external-data-tool-modal.tsx b/web/app/components/app/configuration/tools/external-data-tool-modal.tsx
index 8584c25e9ea..d52b66b65c2 100644
--- a/web/app/components/app/configuration/tools/external-data-tool-modal.tsx
+++ b/web/app/components/app/configuration/tools/external-data-tool-modal.tsx
@@ -191,11 +191,11 @@ const ExternalDataToolModal: FC<ExternalDataToolModalProps> = ({
className='!p-8 !pb-6 !max-w-none !w-[640px]'
>
<div className='mb-2 text-xl font-semibold text-gray-900'>
- {`${action} ${t('appDebug.feature.tools.modal.title')}`}
+ {`${action} ${t('appDebug.variableConig.apiBasedVar')}`}
</div>
<div className='py-2'>
<div className='leading-9 text-sm font-medium text-gray-900'>
- {t('appDebug.feature.tools.modal.toolType.title')}
+ {t('common.apiBasedExtension.type')}
</div>
<SimpleSelect
defaultValue={localeData.type}
diff --git a/web/i18n/lang/app-debug.zh.ts b/web/i18n/lang/app-debug.zh.ts
index 82dff1cd315..4d329db694e 100644
--- a/web/i18n/lang/app-debug.zh.ts
+++ b/web/i18n/lang/app-debug.zh.ts
@@ -273,7 +273,7 @@ const translation = {
maxLength: '最大长度',
options: '选项',
addOption: '添加选项',
- apiBasedVar: '基于API的变量',
+ apiBasedVar: '基于 API 的变量',
},
vision: {
name: '视觉',
diff --git a/web/i18n/lang/common.en.ts b/web/i18n/lang/common.en.ts
index c9d4c122e9a..ee67ed89de4 100644
--- a/web/i18n/lang/common.en.ts
+++ b/web/i18n/lang/common.en.ts
@@ -370,6 +370,7 @@ const translation = {
lengthError: 'API-key length cannot be less than 5 characters',
},
},
+ type: 'Type',
},
about: {
changeLog: 'Changlog',
diff --git a/web/i18n/lang/common.pt.ts b/web/i18n/lang/common.pt.ts
index a0957bb23c4..47562252077 100644
--- a/web/i18n/lang/common.pt.ts
+++ b/web/i18n/lang/common.pt.ts
@@ -198,6 +198,7 @@ const translation = {
lengthError: 'O comprimento da chave da API não pode ser inferior a 5 caracteres',
},
},
+ type: 'Tipo',
},
about: {
changeLog: 'Registro de alterações',
diff --git a/web/i18n/lang/common.zh.ts b/web/i18n/lang/common.zh.ts
index 7c741b4bd52..78909c1f1d0 100644
--- a/web/i18n/lang/common.zh.ts
+++ b/web/i18n/lang/common.zh.ts
@@ -370,6 +370,7 @@ const translation = {
lengthError: 'API-key 不能少于 5 位',
},
},
+ type: '类型',
},
about: {
changeLog: '更新日志',