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.
This commit is contained in:
Jason
2026-02-28 15:47:08 +08:00
parent 35a4a15898
commit c75311e14e

View File

@@ -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 },