mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-05-17 03:57:18 +00:00
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:
parent
169031d9cd
commit
cada422f86
1 changed files with 1 additions and 1 deletions
|
|
@ -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>
|
||||
)}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue