mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-28 19:52:02 +00:00
feat(i18n): add Context Usage component translations
- Add i18n keys for Context Usage component in all locales - Add 'Model:' prefix label for better clarity - Rename 'Autocompact' to 'Autocompact buffer' Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
parent
a811d442b2
commit
418410eb0c
7 changed files with 138 additions and 3 deletions
|
|
@ -205,7 +205,9 @@ export const ContextUsage: React.FC<ContextUsageProps> = ({
|
|||
<>
|
||||
{/* Model name + context window info */}
|
||||
<Box width={CONTENT_WIDTH} marginBottom={1}>
|
||||
<Text color={theme.text.secondary}>{modelName}</Text>
|
||||
<Text color={theme.text.secondary}>
|
||||
{t('Model')}: {modelName}
|
||||
</Text>
|
||||
<Box flexGrow={1} justifyContent="flex-end">
|
||||
<Text color={theme.text.secondary}>
|
||||
{t('Context window')}: {formatTokens(contextWindowSize)}{' '}
|
||||
|
|
@ -243,7 +245,7 @@ export const ContextUsage: React.FC<ContextUsageProps> = ({
|
|||
/>
|
||||
<CategoryRow
|
||||
symbol={BUFFER}
|
||||
label={t('Autocompact')}
|
||||
label={t('Autocompact buffer')}
|
||||
tokens={breakdown.autocompactBuffer}
|
||||
contextWindowSize={contextWindowSize}
|
||||
symbolColor={theme.status.warning}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue