diff --git a/src/components/deeplink/McpConfirmation.tsx b/src/components/deeplink/McpConfirmation.tsx index 00da52e89..c2fb9074b 100644 --- a/src/components/deeplink/McpConfirmation.tsx +++ b/src/components/deeplink/McpConfirmation.tsx @@ -1,4 +1,5 @@ import { useMemo } from "react"; +import { useTranslation } from "react-i18next"; import { DeepLinkImportRequest } from "../../lib/api/deeplink"; import { decodeBase64Utf8 } from "../../lib/utils/base64"; @@ -7,6 +8,8 @@ export function McpConfirmation({ }: { request: DeepLinkImportRequest; }) { + const { t } = useTranslation(); + const mcpServers = useMemo(() => { if (!request.config) return null; try { @@ -20,14 +23,15 @@ export function McpConfirmation({ }, [request.config]); const targetApps = request.apps?.split(",") || []; + const serverCount = Object.keys(mcpServers || {}).length; return (
{decodedContent.substring(0, 500)}
@@ -52,7 +55,7 @@ export function PromptConfirmation({
{request.enabled && (
⚠️
- 导入后将立即启用此提示词,其他提示词将被禁用
+ {t("deeplink.prompt.enabledWarning")}
)}
ℹ️ 此操作将添加 Skill 仓库到列表。
-- 添加后,您可以在 Skills 管理界面中选择安装具体的 Skill。 -
+ℹ️ {t("deeplink.skill.hint")}
+{t("deeplink.skill.hintDetail")}