openclaw - 💡(How to fix) Fix [Feature]: [Feature Request] Gateway UI 支持中文显示 [1 comments, 2 participants]

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…
GitHub stats
openclaw/openclaw#44551Fetched 2026-04-08 00:45:20
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Author
Timeline (top)
commented ×1labeled ×1mentioned ×1subscribed ×1
RAW_BUFFERClick to expand / collapse

Summary

Feature Description

希望 Gateway 仪表盘的界面能够支持中文显示,方便中文用户使用。

Use Case

当前 Gateway UI 的 Audit Log、导航菜单、按钮文字等都是英文,对于中文用户来说阅读理解成本较高。

Expected Behavior

希望能够提供以下中文支持:

  1. Audit Log(审计日志) - 将操作名翻译为中文,例如:
    • exec → "执行命令"
    • read → "读取文件"
    • cron run → "定时任务"
    • subagents list → "子代理列表"
    • browser → "浏览器"
  2. 界面其他元素 - 尽可能提供中文翻译

Problem to solve

希望 Gateway 仪表盘的界面能够支持中文显示,方便中文用户使用。

Proposed solution

当前 Gateway UI 的 Audit Log、导航菜单、按钮文字等都是英文,对于中文用户来说阅读理解成本较高。

Alternatives considered

希望能够提供以下中文支持:

  1. Audit Log(审计日志) - 将操作名翻译为中文,例如:
    • exec → "执行命令"
    • read → "读取文件"
    • cron run → "定时任务"
    • subagents list → "子代理列表"
    • browser → "浏览器"
  2. 界面其他元素 - 尽可能提供中文翻译

Impact

当前 Gateway UI 的 Audit Log、导航菜单、按钮文字等都是英文,对于中文用户来说阅读理解成本较高。

Evidence/examples

No response

Additional information

No response

extent analysis

Fix Plan

To add Chinese support to the Gateway dashboard, we'll implement the following steps:

  • Internationalization (i18n) Integration: Integrate an i18n library (e.g., i18next) to manage translations.
  • Translation Files: Create JSON files for Chinese translations (e.g., zh.json) and add translations for:
    • Audit Log operations (e.g., exec, read, cron run, etc.)
    • Navigation menu items
    • Button texts
  • Code Updates: Update the code to use the i18n library and load the Chinese translations.

Example Code

// Import i18n library
import i18next from 'i18next';

// Initialize i18n
i18next.init({
  lng: 'zh', // Set language to Chinese
  resources: {
    zh: {
      translation: {
        // Audit Log operations
        exec: '执行命令',
        read: '读取文件',
        'cron run': '定时任务',
        'subagents list': '子代理列表',
        browser: '浏览器',
        // Navigation menu items
        menu: {
          dashboard: '仪表盘',
          settings: '设置',
        },
        // Button texts
        buttons: {
          submit: '提交',
          cancel: '取消',
        },
      },
    },
  },
});

// Use i18n in code
function getAuditLogTranslation(operation) {
  return i18next.t(`auditLog.${operation}`);
}

console.log(getAuditLogTranslation('exec')); // Output: 执行命令

Verification

To verify the fix, test the Gateway dashboard with the Chinese language setting and ensure that:

  • Audit Log operations are translated correctly
  • Navigation menu items are translated correctly
  • Button texts are translated correctly

Extra Tips

  • Use a consistent naming convention for translation keys.
  • Consider using a translation management platform (e.g., Crowdin) to manage and update translations.
  • Test the i18n implementation thoroughly to ensure that it works correctly for different languages and regions.

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