mirror of
https://github.com/langgenius/dify.git
synced 2026-06-07 16:32:01 +08:00
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:
parent
d110112863
commit
c34fc429ae
@ -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"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user