fix: use Trans component for delete app confirmation text on editing page (#36092)

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com>
This commit is contained in:
Copilot 2026-05-13 14:08:59 +08:00 committed by GitHub
parent d110112863
commit c34fc429ae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14,7 +14,7 @@ import {
} from '@langgenius/dify-ui/alert-dialog'
import * as React from 'react'
import { useCallback, useState } from 'react'
import { useTranslation } from 'react-i18next'
import { Trans, useTranslation } from 'react-i18next'
import Input from '@/app/components/base/input'
import { DSLExportConfirmContent } from '@/app/components/workflow/dsl-export-confirm-modal'
import dynamic from '@/next/dynamic'
@ -157,7 +157,14 @@ const AppInfoModals = ({
</AlertDialogDescription>
<div className="mt-2">
<label className="mb-1 block system-sm-regular text-text-secondary">
{t('deleteAppConfirmInputLabel', { ns: 'app', appName: appDetail.name })}
<Trans
i18nKey="deleteAppConfirmInputLabel"
ns="app"
values={{ appName: appDetail.name }}
components={{
appName: <span className="system-sm-semibold text-text-primary" translate="no" />,
}}
/>
</label>
<Input
type="text"