openclaw - 💡(How to fix) Fix feat: add i18n fields for slash command descriptions

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Code Example

defineChatCommand({
  name: "compact",
  description: "Compact the session context.",
  descriptionZhCN: "压缩当前会话上下文",
  descriptionZhTW: "壓縮目前工作階段上下文",
})
RAW_BUFFERClick to expand / collapse

Feature Request: i18n support for slash command descriptions

Problem

Chinese-speaking users see English-only descriptions for slash commands (e.g. /help, /compact, /new, /model). Translating the command names themselves is impractical due to platform limitations (Discord name length limits, Telegram restrictions, user muscle memory).

Proposed Solution

Add an optional i18n description field to defineChatCommand() (or equivalent registration):

defineChatCommand({
  name: "compact",
  description: "Compact the session context.",
  descriptionZhCN: "压缩当前会话上下文",
  descriptionZhTW: "壓縮目前工作階段上下文",
})

Benefits

  • Command names stay in English (no platform/API issues)
  • Web UI and native channel menus can display Chinese descriptions based on user locale
  • No backend logic changes required
  • Each plugin/extension can add its own translations independently
  • Backward compatible (existing description field unchanged)

Affected areas

  • src/auto-reply/commands-registry.shared.ts (core built-in commands)
  • src/tui/commands.ts (TUI commands)
  • Channel plugin command registrations (Discord, Telegram, Mattermost, Slack, etc.)
  • Command spec types in src/plugins/types.ts

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING