diff --git a/web/app/components/header/account-setting/sandbox-provider-page/switch-modal.tsx b/web/app/components/header/account-setting/sandbox-provider-page/switch-modal.tsx index bb343b8dc5..530f81b830 100644 --- a/web/app/components/header/account-setting/sandbox-provider-page/switch-modal.tsx +++ b/web/app/components/header/account-setting/sandbox-provider-page/switch-modal.tsx @@ -1,9 +1,8 @@ 'use client' import type { SandboxProvider } from '@/service/use-sandbox-provider' -import { RiAlertLine } from '@remixicon/react' import { memo, useCallback } from 'react' -import { useTranslation } from 'react-i18next' +import { Trans, useTranslation } from 'react-i18next' import Button from '@/app/components/base/button' import Modal from '@/app/components/base/modal' import { useToastContext } from '@/app/components/base/toast' @@ -49,23 +48,23 @@ const SwitchModal = ({ >
{/* Warning Section */} -
-
- +
+
+ {t('sandboxProvider.switchModal.warning', { ns: 'common' })}
-
-
- {t('sandboxProvider.switchModal.warning', { ns: 'common' })} -
-
- {t('sandboxProvider.switchModal.warningDesc', { ns: 'common' })} -
+
+ {t('sandboxProvider.switchModal.warningDesc', { ns: 'common' })}
{/* Confirm Text */}
- {t('sandboxProvider.switchModal.confirmText', { ns: 'common', provider: provider.label })} + }} + />
{/* Footer Actions */} diff --git a/web/i18n/en-US/common.json b/web/i18n/en-US/common.json index bf388af5c4..2655ae6881 100644 --- a/web/i18n/en-US/common.json +++ b/web/i18n/en-US/common.json @@ -595,7 +595,7 @@ "sandboxProvider.setAsActive": "Set as Active", "sandboxProvider.switchModal.cancel": "Cancel", "sandboxProvider.switchModal.confirm": "Switch", - "sandboxProvider.switchModal.confirmText": "You are about to switch the active sandbox provider to {{provider}}.", + "sandboxProvider.switchModal.confirmText": "You are about to switch the active sandbox provider to {{provider}}.", "sandboxProvider.switchModal.title": "Switch Active Provider?", "sandboxProvider.switchModal.warning": "Impact on running agents", "sandboxProvider.switchModal.warningDesc": "Switching the provider will affect all newly started agent tasks. Currently running sessions might be interrupted.", diff --git a/web/i18n/zh-Hans/common.json b/web/i18n/zh-Hans/common.json index 9bfbcfc0a4..6f400b0913 100644 --- a/web/i18n/zh-Hans/common.json +++ b/web/i18n/zh-Hans/common.json @@ -593,7 +593,7 @@ "sandboxProvider.setAsActive": "设为激活", "sandboxProvider.switchModal.cancel": "取消", "sandboxProvider.switchModal.confirm": "切换", - "sandboxProvider.switchModal.confirmText": "您即将将活动沙箱供应商切换为 {{provider}}。", + "sandboxProvider.switchModal.confirmText": "您即将将活动沙箱供应商切换为 {{provider}}。", "sandboxProvider.switchModal.title": "切换活动供应商?", "sandboxProvider.switchModal.warning": "对运行中的代理的影响", "sandboxProvider.switchModal.warningDesc": "切换供应商将影响所有新启动的代理任务。当前运行的会话可能会被中断。",