From 17bf6a15ce8d8b01aa623fe8b38ce4e3c2a7caca Mon Sep 17 00:00:00 2001 From: yetone Date: Fri, 25 Sep 2026 17:20:35 +0800 Subject: [PATCH] =?UTF-8?q?routing:=20in=20Chinese,=20a=20provider=20row's?= =?UTF-8?q?=20"one=20key"=20is=20"=E4=B8=80=E4=B8=AA=20Key",=20and=20the?= =?UTF-8?q?=20caption=20under=20the=20map=20is=20said=20again=20in=20the?= =?UTF-8?q?=20new=20language=20when=20the=20language=20changes=20=E2=80=94?= =?UTF-8?q?=20it=20was=20set=20as=20text,=20so=20one=20said=20before=20Chi?= =?UTF-8?q?nese=20was=20applied=20stayed=20English=20("DeepSeek=20goes=20f?= =?UTF-8?q?irst.")=20while=20everything=20round=20it=20was=20Chinese?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/gui/assets/i18n.js | 1 + internal/gui/assets/routing.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/gui/assets/i18n.js b/internal/gui/assets/i18n.js index bc3910d5a..f69b5d498 100644 --- a/internal/gui/assets/i18n.js +++ b/internal/gui/assets/i18n.js @@ -537,6 +537,7 @@ const I18N = { "{who} answered {status} · {fail}, and nobody else is left to ask — a failure that may pass, so it is tried again in {d}, before any of the reply reaches {agent}.": "{who} 回了 {status} · {fail},而且没有别人可问了——这种失败可能一会儿就过去,所以 {d} 后再试它一次,回复的任何部分都还没交给 {agent}。", "fallback": "备用", "gateway": "网关", + "one key": "一个 Key", "your agent": "你的 Agent", "Back to live": "回到实时", "How the last request was routed": "最近一个请求是怎么路由的", diff --git a/internal/gui/assets/routing.js b/internal/gui/assets/routing.js index 5d0d77f1d..ab0d69b33 100644 --- a/internal/gui/assets/routing.js +++ b/internal/gui/assets/routing.js @@ -1049,7 +1049,8 @@ function words() { for (const s of stats.children) s.lastChild.textContent = t(s.dataset.label); hubText(); - if (loaded) { if (cur) { sync(true); renderAll(); } else empty(); } + // the caption said before, said again in these words: it was set as text + if (loaded) { if (cur) { sync(true); renderAll(); capQ = []; say(affWhy(cur, true) || firstWhy(cur)); } else empty(); } renderGroups(); } new MutationObserver(words).observe(document.documentElement, { attributes: true, attributeFilter: ["lang"] });