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: use Trans component for delete app confirmation text on editing page (#36092)

Copilotc34fc429ae97
diff --git a/web/app/components/app-sidebar/app-info/app-info-modals.tsx b/web/app/components/app-sidebar/app-info/app-info-modals.tsx
index e1ed1d62eff..7e8015f23f2 100644
--- a/web/app/components/app-sidebar/app-info/app-info-modals.tsx
+++ b/web/app/components/app-sidebar/app-info/app-info-modals.tsx
@@ -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"