fix(cli): use existing 'Esc to cancel' i18n key for narrow-terminal fallback

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.
This commit is contained in:
秦奇 2026-05-11 15:20:45 +08:00
parent 169031d9cd
commit cada422f86

View file

@ -119,7 +119,7 @@ export const Composer = () => {
*/}
{!uiState.embeddedShellFocused && suppressBottomLoadingIndicator && (
<Box paddingLeft={2}>
<Text color={theme.text.secondary}>{t('(esc to cancel)')}</Text>
<Text color={theme.text.secondary}>({t('Esc to cancel')})</Text>
</Box>
)}