Skip to content

feat(i18n): add configurable Chinese localization for CLI#15282

Closed
gzsiang wants to merge 2 commits into
NousResearch:mainfrom
gzsiang:feat/i18n-zh-cli
Closed

feat(i18n): add configurable Chinese localization for CLI#15282
gzsiang wants to merge 2 commits into
NousResearch:mainfrom
gzsiang:feat/i18n-zh-cli

Conversation

@gzsiang

@gzsiang gzsiang commented Apr 24, 2026

Copy link
Copy Markdown

Summary

Add configurable Chinese (中文) localization to Hermes Agent CLI, including:

  • i18n framework: New tools/i18n.py with format_zh() function for configurable localization
  • CLI strings: Localized user-facing strings in compression, tool execution, session management, etc.
  • Banner & skin engine: Chinese translations for banner text and skin descriptions
  • Slash commands: Chinese descriptions and help text for all commands
  • Spinner verbs: Chinese thinking verbs for the KawaiiSpinner
  • Tips: Bilingual tips system (EN/ZH split with TIPS backward compat alias)
  • Approvals: Chinese translations for dangerous command approval prompts
  • Security scan: Chinese translations for Tirith security scan findings
  • TUI: Chinese support in TUI slash commands, theme, and verb display
  • Config: Controlled via approvals.language in config.yaml (zh or en)

@alt-glitch alt-glitch added type/feature New feature or request P3 Low — cosmetic, nice to have comp/cli CLI entry point, hermes_cli/, setup wizard comp/tui Terminal UI (ui-tui/ + tui_gateway/) labels Apr 24, 2026
@gzsiang gzsiang force-pushed the feat/i18n-zh-cli branch 4 times, most recently from 766fb55 to e9d7c6c Compare May 2, 2026 12:02
@gzsiang gzsiang closed this May 2, 2026
@gzsiang gzsiang reopened this May 2, 2026
@gzsiang gzsiang force-pushed the feat/i18n-zh-cli branch 2 times, most recently from ae2dc62 to 48c91f7 Compare May 4, 2026 16:53
@gzsiang gzsiang force-pushed the feat/i18n-zh-cli branch 6 times, most recently from b01c6fd to d47002b Compare May 9, 2026 15:47
@gzsiang gzsiang force-pushed the feat/i18n-zh-cli branch 2 times, most recently from b01c6fd to 4a632d7 Compare May 10, 2026 11:19
gzsiang and others added 2 commits May 10, 2026 20:34
- Add from tools.i18n import format_zh
- Wrap 3 self._touch_activity() status strings
- Wrap 7 print/_vprint/_safe_print interrupt messages
- All translations present in tools/i18n.py

Co-Authored-By: AI Assistant <noreply@example.com>
@gzsiang gzsiang force-pushed the feat/i18n-zh-cli branch from 4a632d7 to 1f831fd Compare May 10, 2026 17:22
@gzsiang

gzsiang commented May 11, 2026

Copy link
Copy Markdown
Author

This PR has been superseded by #22914 which landed a more comprehensive i18n solution. The new approach uses a YAML-based catalog with t() function, supports 16 languages (including zh and zh-hant), and covers all gateway commands, web dashboard, and plugin panels. Thank you for your contribution!

@gzsiang gzsiang closed this May 11, 2026
@gzsiang gzsiang deleted the feat/i18n-zh-cli branch May 16, 2026 17:40
gzsiang added a commit to gzsiang/hermes-agent that referenced this pull request Jun 6, 2026
Added Chinese description of fork features:
- Circuit breaker (NousResearch#16749)
- CLI Chinese localization (NousResearch#15282)
- Message embedding (NousResearch#18059)
- Emergency compression (NousResearch#18607)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/cli CLI entry point, hermes_cli/, setup wizard comp/tui Terminal UI (ui-tui/ + tui_gateway/) P3 Low — cosmetic, nice to have type/feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants