Skip to content

Feature Request: i18n / Multi-Language Support for System Messages #16546

@NickLJing

Description

@NickLJing

Feature Request: i18n / Multi-Language Support for System Messages

Problem

Currently, all system-level messages generated by Hermes Agent are hardcoded in English — interrupt notices (⚡ Interrupting current task...), tool approval prompts (⚠️ Dangerous command requires approval...), background process notifications, error messages, etc. For non-English-speaking users (e.g., Chinese), this creates an inconsistent experience: the agent responds fluently in Chinese, but system messages drop into English mid-conversation.

Proposed Solution

Add i18n support for system messages:

  1. Extract all user-facing system strings into locale files (e.g., locales/zh_CN.yaml, locales/ja.yaml)
  2. Auto-detect locale from the user's OS language ($LANG) or config.yaml setting
  3. Fallback to English when a locale is unavailable
  4. Phase 1 scope: gateway system messages, interrupt notices, tool approval prompts, cron delivery headers

Affected Components

  • Gateway interrupt/pause/resume messages
  • Tool approval / dangerous command confirmation prompts
  • Cron job delivery formatting
  • Error and timeout messages
  • Memory save confirmation messages

Example

# Now:
"⚡ Interrupting current task (2 min elapsed, iteration 2/90). I will respond to your message shortly."

# Expected (zh_CN):
"⚡ 正在中断当前任务(已运行 2 分钟,第 2/90 轮)。稍后回复你的消息。"

Additional Context

  • User base includes multiple non-English platforms (Weixin/WeChat, DingTalk, Feishu, QQ Bot)
  • The agent already correctly switches to the user's preferred language for conversation responses
  • System prompt could include locale preference for full-system i18n

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low — cosmetic, nice to havecomp/gatewayGateway runner, session dispatch, deliverytype/featureNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions