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(web): internationalize DSL export modal labels (#34323)

yyh6b0c6d0cde33
diff --git a/web/app/components/workflow/dsl-export-confirm-modal.tsx b/web/app/components/workflow/dsl-export-confirm-modal.tsx
index e698de722e3..a92698c8b73 100644
--- a/web/app/components/workflow/dsl-export-confirm-modal.tsx
+++ b/web/app/components/workflow/dsl-export-confirm-modal.tsx
@@ -45,8 +45,8 @@ const DSLExportConfirmModal = ({
<table className="radius-md w-full border-separate border-spacing-0 border border-divider-regular shadow-xs">
<thead className="system-xs-medium-uppercase text-text-tertiary">
<tr>
- <td width={220} className="h-7 border-b border-r border-divider-regular pl-3">NAME</td>
- <td className="h-7 border-b border-divider-regular pl-3">VALUE</td>
+ <td width={220} className="h-7 border-b border-r border-divider-regular pl-3">{t('env.export.name', { ns: 'workflow' })}</td>
+ <td className="h-7 border-b border-divider-regular pl-3">{t('env.export.value', { ns: 'workflow' })}</td>
</tr>
</thead>
<tbody>
@@ -56,7 +56,7 @@ const DSLExportConfirmModal = ({
<div className="flex w-[200px] items-center gap-1">
<Env className="h-4 w-4 shrink-0 text-util-colors-violet-violet-600" />
<div className="truncate text-text-primary">{env.name}</div>
- <div className="shrink-0 text-text-tertiary">Secret</div>
+ <div className="shrink-0 text-text-tertiary">{t('env.export.secret', { ns: 'workflow' })}</div>
<RiLock2Line className="h-3 w-3 shrink-0 text-text-tertiary" />
</div>
</td>
diff --git a/web/i18n/en-US/workflow.json b/web/i18n/en-US/workflow.json
index dd9337ecc09..5c7df027911 100644
--- a/web/i18n/en-US/workflow.json
+++ b/web/i18n/en-US/workflow.json
@@ -287,7 +287,10 @@
"env.export.checkbox": "Export secret values",
"env.export.export": "Export DSL with secret values ",
"env.export.ignore": "Export DSL",
+ "env.export.name": "Name",
+ "env.export.secret": "Secret",
"env.export.title": "Export Secret environment variables?",
+ "env.export.value": "Value",
"env.modal.description": "Description",
"env.modal.descriptionPlaceholder": "Describe the variable",
"env.modal.editTitle": "Edit Environment Variable",