From cada422f86df4288bb8dd0be55ab2a3e4db87b4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=A6=E5=A5=87?= Date: Mon, 11 May 2026 15:20:45 +0800 Subject: [PATCH] fix(cli): use existing 'Esc to cancel' i18n key for narrow-terminal fallback MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The 169031d9c fix passed `'(esc to cancel)'` to `t()` but no such key exists in any locale file. `t()` falls back to returning the key verbatim, so English users saw correct text but non-English locales got the untranslated English string — i.e. zero i18n coverage. The repo already ships a translated `'Esc to cancel'` key in all 9 locales (used by QwenOAuthProgress and similar). Reuse it and move the parentheses outside the call so the surrounding `()` is layout-only, not translatable. --- packages/cli/src/ui/components/Composer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli/src/ui/components/Composer.tsx b/packages/cli/src/ui/components/Composer.tsx index ca917aada..b26aac503 100644 --- a/packages/cli/src/ui/components/Composer.tsx +++ b/packages/cli/src/ui/components/Composer.tsx @@ -119,7 +119,7 @@ export const Composer = () => { */} {!uiState.embeddedShellFocused && suppressBottomLoadingIndicator && ( - {t('(esc to cancel)')} + ({t('Esc to cancel')}) )}