fix(web): internationalize DSL export modal labels (#34323)

This commit is contained in:
yyh
2026-03-31 15:06:16 +08:00
committed by GitHub
parent 1063e021f2
commit 6b0c6d0cde
2 changed files with 6 additions and 3 deletions

View File

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

View File

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