From b378319d4aaedfa9fe7f8ca29faae14f887e52e8 Mon Sep 17 00:00:00 2001 From: Xubin Ren <52506698+Re-bin@users.noreply.github.com> Date: Fri, 14 Aug 2026 07:22:07 +0900 Subject: [PATCH] fix(webui): enforce localized group copy --- webui/src/App.tsx | 2 -- webui/src/components/ChatList.tsx | 27 ++++++----------------- webui/src/i18n/locales/en/common.json | 2 +- webui/src/i18n/locales/es/common.json | 2 +- webui/src/i18n/locales/fr/common.json | 2 +- webui/src/i18n/locales/id/common.json | 2 +- webui/src/i18n/locales/ja/common.json | 2 +- webui/src/i18n/locales/ko/common.json | 2 +- webui/src/i18n/locales/pt-BR/common.json | 2 +- webui/src/i18n/locales/vi/common.json | 2 +- webui/src/i18n/locales/zh-CN/common.json | 2 +- webui/src/i18n/locales/zh-TW/common.json | 2 +- webui/src/tests/app-layout.test.tsx | 10 ++++----- webui/src/tests/chat-list.test.tsx | 28 ++++++++++++------------ webui/src/tests/i18n.test.tsx | 28 ++++++++++++++++++++++++ 15 files changed, 64 insertions(+), 51 deletions(-) diff --git a/webui/src/App.tsx b/webui/src/App.tsx index 43729e05b..c7a5e942d 100644 --- a/webui/src/App.tsx +++ b/webui/src/App.tsx @@ -2718,7 +2718,6 @@ function Shell({ addPaneDisabled={creatingPane || activePaneLimitReached} addPaneDisabledLabel={activePaneLimitReached ? t("workbench.paneLimit", { - defaultValue: "Maximum {{count}} panes", count: MAX_WORKBENCH_PANES, }) : undefined} @@ -2812,7 +2811,6 @@ function Shell({ composerPortalTarget={context.composerPortalTarget} composerActive={context.active} composerInputAriaLabel={t("workbench.composerAria", { - defaultValue: "Message {{title}}", title: pane.title, })} emptyComposerVariant="thread" diff --git a/webui/src/components/ChatList.tsx b/webui/src/components/ChatList.tsx index 2d178244e..e8d4735ae 100644 --- a/webui/src/components/ChatList.tsx +++ b/webui/src/components/ChatList.tsx @@ -1013,9 +1013,7 @@ export const ChatList = memo(function ChatList({ {paneGroup && onCreateTab ? ( onCreateTab(s.key)}> - {t("workbench.createGroup", { - defaultValue: "Create group", - })} + {t("workbench.createGroup")} ) : null} {paneGroup && onAttachPane ? ( @@ -1220,7 +1218,7 @@ function WorkbenchTabHeader({ {onDissolve ? ( - {t("workbench.dissolveTab", { defaultValue: "Dissolve group" })} + {t("workbench.dissolveTab")} ) : null} - {t("workbench.deleteConversations", { - defaultValue: "Delete all chats", - })} + {t("workbench.deleteConversations")} @@ -1322,10 +1318,7 @@ function ActivePaneRows({ return (