From c75311e14e578cbc01b9c4565a7f64a56d420b5c Mon Sep 17 00:00:00 2001 From: Jason Date: Sat, 28 Feb 2026 15:47:08 +0800 Subject: [PATCH] fix: pass app interpolation param to proxy takeover toast messages The i18next t() calls for proxy.takeover.enabled/disabled were missing the `app` interpolation parameter, causing {{app}} placeholders in translation strings to render literally instead of showing the app name. --- src/hooks/useProxyStatus.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hooks/useProxyStatus.ts b/src/hooks/useProxyStatus.ts index d2faa2a8f..e2cf3c367 100644 --- a/src/hooks/useProxyStatus.ts +++ b/src/hooks/useProxyStatus.ts @@ -108,9 +108,11 @@ export function useProxyStatus() { toast.success( variables.enabled ? t("proxy.takeover.enabled", { + app: appLabel, defaultValue: `已接管 ${appLabel} 配置(请求将走本地代理)`, }) : t("proxy.takeover.disabled", { + app: appLabel, defaultValue: `已恢复 ${appLabel} 配置`, }), { closeButton: true },