Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/users/features/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ Commands for adjusting interface appearance and work environment.
| Command | Description | Usage Examples |
| ------------ | ---------------------------------------- | ----------------------------- |
| `/clear` | Clear terminal screen content | `/clear` (shortcut: `Ctrl+L`) |
| `/context` | Show context window usage breakdown | `/context` |
| `/theme` | Change Qwen Code visual theme | `/theme` |
| `/vim` | Turn input area Vim editing mode on/off | `/vim` |
| `/directory` | Manage multi-directory support workspace | `/dir add ./src,./tests` |
Expand Down
23 changes: 23 additions & 0 deletions packages/cli/src/i18n/locales/de.js
Original file line number Diff line number Diff line change
Expand Up @@ -1459,4 +1459,27 @@ export default {
'{{region}}-Konfiguration erfolgreich aktualisiert. Modell auf "{{model}}" umgeschaltet.',
'Authenticated successfully with {{region}}. API key and model configs saved to settings.json (backed up).':
'Erfolgreich mit {{region}} authentifiziert. API-Schlüssel und Modellkonfigurationen wurden in settings.json gespeichert (gesichert).',

// ============================================================================
// Context Usage Component
// ============================================================================
'Context Usage': 'Kontextnutzung',
'No API response yet. Send a message to see actual usage.':
'Noch keine API-Antwort. Senden Sie eine Nachricht, um die tatsächliche Nutzung anzuzeigen.',
'Estimated pre-conversation overhead':
'Geschätzte Vorabkosten vor der Unterhaltung',
'Context window': 'Kontextfenster',
tokens: 'Tokens',
Used: 'Verwendet',
Free: 'Frei',
'Autocompact buffer': 'Autokomprimierungs-Puffer',
'Usage by category': 'Verwendung nach Kategorie',
'System prompt': 'System-Prompt',
'Built-in tools': 'Integrierte Tools',
'MCP tools': 'MCP-Tools',
'Memory files': 'Speicherdateien',
Skills: 'Fähigkeiten',
Messages: 'Nachrichten',
'Show context window usage breakdown.':
'Zeigt die Aufschlüsselung der Kontextfenster-Nutzung an.',
};
22 changes: 22 additions & 0 deletions packages/cli/src/i18n/locales/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -1448,4 +1448,26 @@ export default {
'{{region}} configuration updated successfully. Model switched to "{{model}}".',
'Authenticated successfully with {{region}}. API key and model configs saved to settings.json (backed up).':
'Authenticated successfully with {{region}}. API key and model configs saved to settings.json (backed up).',

// ============================================================================
// Context Usage Component
// ============================================================================
'Context Usage': 'Context Usage',
'No API response yet. Send a message to see actual usage.':
'No API response yet. Send a message to see actual usage.',
'Estimated pre-conversation overhead': 'Estimated pre-conversation overhead',
'Context window': 'Context window',
tokens: 'tokens',
Used: 'Used',
Free: 'Free',
'Autocompact buffer': 'Autocompact buffer',
'Usage by category': 'Usage by category',
'System prompt': 'System prompt',
'Built-in tools': 'Built-in tools',
'MCP tools': 'MCP tools',
'Memory files': 'Memory files',
Skills: 'Skills',
Messages: 'Messages',
'Show context window usage breakdown.':
'Show context window usage breakdown.',
};
24 changes: 23 additions & 1 deletion packages/cli/src/i18n/locales/ja.js
Original file line number Diff line number Diff line change
Expand Up @@ -965,5 +965,27 @@ export default {
'{{region}} configuration updated successfully. Model switched to "{{model}}".':
'{{region}} の設定が正常に更新されました。モデルが "{{model}}" に切り替わりました。',
'Authenticated successfully with {{region}}. API key and model configs saved to settings.json (backed up).':
'{{region}} での認証に成功しました。APIキーとモデル設定が settings.json に保存されました(バックアップ済み)。',
'{{region}} での認証に成功しました。API キーとモデル設定が settings.json に保存されました(バックアップ済み)。',

// ============================================================================
// Context Usage Component
// ============================================================================
'Context Usage': 'コンテキスト使用量',
'No API response yet. Send a message to see actual usage.':
'API応答はありません。メッセージを送信して実際の使用量を確認してください。',
'Estimated pre-conversation overhead': '推定事前会話オーバーヘッド',
'Context window': 'コンテキストウィンドウ',
tokens: 'トークン',
Used: '使用済み',
Free: '空き',
'Autocompact buffer': '自動圧縮バッファ',
'Usage by category': 'カテゴリ別の使用量',
'System prompt': 'システムプロンプト',
'Built-in tools': '組み込みツール',
'MCP tools': 'MCPツール',
'Memory files': 'メモリファイル',
Skills: 'スキル',
Messages: 'メッセージ',
'Show context window usage breakdown.':
'コンテキストウィンドウの使用状況を表示します。',
};
22 changes: 22 additions & 0 deletions packages/cli/src/i18n/locales/pt.js
Original file line number Diff line number Diff line change
Expand Up @@ -1453,4 +1453,26 @@ export default {
'Configuração do {{region}} atualizada com sucesso. Modelo alterado para "{{model}}".',
'Authenticated successfully with {{region}}. API key and model configs saved to settings.json (backed up).':
'Autenticado com sucesso com {{region}}. Chave de API e configurações de modelo salvas em settings.json (com backup).',

// ============================================================================
// Context Usage Component
// ============================================================================
'Context Usage': 'Uso do Contexto',
'No API response yet. Send a message to see actual usage.':
'Ainda não há resposta da API. Envie uma mensagem para ver o uso real.',
'Estimated pre-conversation overhead': 'Sobrecarga estimada pré-conversa',
'Context window': 'Janela de Contexto',
tokens: 'tokens',
Used: 'Usado',
Free: 'Livre',
'Autocompact buffer': 'Buffer de autocompactação',
'Usage by category': 'Uso por categoria',
'System prompt': 'Prompt do sistema',
'Built-in tools': 'Ferramentas integradas',
'MCP tools': 'Ferramentas MCP',
'Memory files': 'Arquivos de memória',
Skills: 'Habilidades',
Messages: 'Mensagens',
'Show context window usage breakdown.':
'Exibe a divisão de uso da janela de contexto.',
};
23 changes: 23 additions & 0 deletions packages/cli/src/i18n/locales/ru.js
Original file line number Diff line number Diff line change
Expand Up @@ -1463,4 +1463,27 @@ export default {
'Конфигурация {{region}} успешно обновлена. Модель переключена на "{{model}}".',
'Authenticated successfully with {{region}}. API key and model configs saved to settings.json (backed up).':
'Успешная аутентификация с {{region}}. API-ключ и конфигурации моделей сохранены в settings.json (резервная копия создана).',

// ============================================================================
// Context Usage Component
// ============================================================================
'Context Usage': 'Использование контекста',
'No API response yet. Send a message to see actual usage.':
'Пока нет ответа от API. Отправьте сообщение, чтобы увидеть фактическое использование.',
'Estimated pre-conversation overhead':
'Оценочные накладные расходы перед беседой',
'Context window': 'Контекстное окно',
tokens: 'токенов',
Used: 'Использовано',
Free: 'Свободно',
'Autocompact buffer': 'Буфер автоупаковки',
'Usage by category': 'Использование по категориям',
'System prompt': 'Системная подсказка',
'Built-in tools': 'Встроенные инструменты',
'MCP tools': 'Инструменты MCP',
'Memory files': 'Файлы памяти',
Skills: 'Навыки',
Messages: 'Сообщения',
'Show context window usage breakdown.':
'Показать разбивку использования контекстного окна.',
};
21 changes: 21 additions & 0 deletions packages/cli/src/i18n/locales/zh.js
Original file line number Diff line number Diff line change
Expand Up @@ -1281,4 +1281,25 @@ export default {
'{{region}} 配置更新成功。模型已切换至 "{{model}}"。',
'Authenticated successfully with {{region}}. API key and model configs saved to settings.json (backed up).':
'成功通过 {{region}} 认证。API Key 和模型配置已保存至 settings.json(已备份)。',

// ============================================================================
// Context Usage
// ============================================================================
'Context Usage': '上下文使用情况',
'Context window': '上下文窗口',
Used: '已用',
Free: '空闲',
'Autocompact buffer': '自动压缩缓冲区',
'Usage by category': '分类用量',
'System prompt': '系统提示',
'Built-in tools': '内置工具',
'MCP tools': 'MCP 工具',
'Memory files': '记忆文件',
Skills: '技能',
Messages: '消息',
tokens: 'tokens',
'Estimated pre-conversation overhead': '预估对话前开销',
'No API response yet. Send a message to see actual usage.':
'暂无 API 响应。发送消息以查看实际使用情况。',
'Show context window usage breakdown.': '显示上下文窗口使用情况分解。',
};
2 changes: 2 additions & 0 deletions packages/cli/src/services/BuiltinCommandLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { authCommand } from '../ui/commands/authCommand.js';
import { bugCommand } from '../ui/commands/bugCommand.js';
import { clearCommand } from '../ui/commands/clearCommand.js';
import { compressCommand } from '../ui/commands/compressCommand.js';
import { contextCommand } from '../ui/commands/contextCommand.js';
import { copyCommand } from '../ui/commands/copyCommand.js';
import { docsCommand } from '../ui/commands/docsCommand.js';
import { directoryCommand } from '../ui/commands/directoryCommand.js';
Expand Down Expand Up @@ -65,6 +66,7 @@ export class BuiltinCommandLoader implements ICommandLoader {
bugCommand,
clearCommand,
compressCommand,
contextCommand,
copyCommand,
docsCommand,
directoryCommand,
Expand Down
Loading