openclaw - 💡(How to fix) Fix [Control UI] 部分模块中文翻译缺失 [1 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#52254Fetched 2026-04-08 01:13:41
View on GitHub
Comments
0
Participants
1
Timeline
1
Reactions
0
Author
Participants
Timeline (top)
labeled ×1
RAW_BUFFERClick to expand / collapse

Summary

问题描述

当在 Control UI 中切换语言为中文 (zh-CN) 时,部分 Tab 内部的 UI 仍然是英文。

复现步骤

  1. 打开 Control UI (http://<host>:18789/)
  2. 在 Access card 中选择语言为 "简体中文"
  3. 切换到以下 Tab,观察内部 UI 仍为英文:
    • 代理 (Agents)
    • 技能 (Skills)
    • 频道 (Channels)
    • 会话 (Sessions)
    • 节点 (Nodes)
    • 调试 (Debug)

预期行为

所有 Tab 内部 UI 都应该显示中文。

实际行为

以下模块的翻译文件缺失:

  • agents-*.js
  • skills-*.js
  • channels-*.js
  • sessions-*.js
  • nodes-*.js
  • debug-*.js

检查 dist/control-ui/assets/ 目录发现,只有主入口 index-*.js 包含完整的中文翻译(zh-CN-DYuK7yBr.js),但各个功能模块的翻译文件不包含中文字符串。

环境信息

  • OpenClaw 版本:2026.3.13
  • Gateway 版本:已知
  • 浏览器:Chrome/Edge/Firefox
  • 操作系统:Any

附加信息

这是懒加载翻译机制的问题。主界面通过 index-*.js 正确加载了中文翻译,但各个功能模块(agents, skills, channels 等)没有对应的中文翻译文件或翻译内容。

Problem to solve

问题描述

当在 Control UI 中切换语言为中文 (zh-CN) 时,部分 Tab 内部的 UI 仍然是英文。

复现步骤

  1. 打开 Control UI (http://<host>:18789/)
  2. 在 Access card 中选择语言为 "简体中文"
  3. 切换到以下 Tab,观察内部 UI 仍为英文:
    • 代理 (Agents)
    • 技能 (Skills)
    • 频道 (Channels)
    • 会话 (Sessions)
    • 节点 (Nodes)
    • 调试 (Debug)

预期行为

所有 Tab 内部 UI 都应该显示中文。

实际行为

以下模块的翻译文件缺失:

  • agents-*.js
  • skills-*.js
  • channels-*.js
  • sessions-*.js
  • nodes-*.js
  • debug-*.js

检查 dist/control-ui/assets/ 目录发现,只有主入口 index-*.js 包含完整的中文翻译(zh-CN-DYuK7yBr.js),但各个功能模块的翻译文件不包含中文字符串。

环境信息

  • OpenClaw 版本:2026.3.13
  • Gateway 版本:已知
  • 浏览器:Chrome/Edge/Firefox
  • 操作系统:Any

附加信息

这是懒加载翻译机制的问题。主界面通过 index-*.js 正确加载了中文翻译,但各个功能模块(agents, skills, channels 等)没有对应的中文翻译文件或翻译内容。

Proposed solution

问题描述

当在 Control UI 中切换语言为中文 (zh-CN) 时,部分 Tab 内部的 UI 仍然是英文。

复现步骤

  1. 打开 Control UI (http://<host>:18789/)
  2. 在 Access card 中选择语言为 "简体中文"
  3. 切换到以下 Tab,观察内部 UI 仍为英文:
    • 代理 (Agents)
    • 技能 (Skills)
    • 频道 (Channels)
    • 会话 (Sessions)
    • 节点 (Nodes)
    • 调试 (Debug)

预期行为

所有 Tab 内部 UI 都应该显示中文。

实际行为

以下模块的翻译文件缺失:

  • agents-*.js
  • skills-*.js
  • channels-*.js
  • sessions-*.js
  • nodes-*.js
  • debug-*.js

检查 dist/control-ui/assets/ 目录发现,只有主入口 index-*.js 包含完整的中文翻译(zh-CN-DYuK7yBr.js),但各个功能模块的翻译文件不包含中文字符串。

环境信息

  • OpenClaw 版本:2026.3.13
  • Gateway 版本:已知
  • 浏览器:Chrome/Edge/Firefox
  • 操作系统:Any

附加信息

这是懒加载翻译机制的问题。主界面通过 index-*.js 正确加载了中文翻译,但各个功能模块(agents, skills, channels 等)没有对应的中文翻译文件或翻译内容。

Alternatives considered

No response

Impact

问题描述

当在 Control UI 中切换语言为中文 (zh-CN) 时,部分 Tab 内部的 UI 仍然是英文。

复现步骤

  1. 打开 Control UI (http://<host>:18789/)
  2. 在 Access card 中选择语言为 "简体中文"
  3. 切换到以下 Tab,观察内部 UI 仍为英文:
    • 代理 (Agents)
    • 技能 (Skills)
    • 频道 (Channels)
    • 会话 (Sessions)
    • 节点 (Nodes)
    • 调试 (Debug)

预期行为

所有 Tab 内部 UI 都应该显示中文。

实际行为

以下模块的翻译文件缺失:

  • agents-*.js
  • skills-*.js
  • channels-*.js
  • sessions-*.js
  • nodes-*.js
  • debug-*.js

检查 dist/control-ui/assets/ 目录发现,只有主入口 index-*.js 包含完整的中文翻译(zh-CN-DYuK7yBr.js),但各个功能模块的翻译文件不包含中文字符串。

环境信息

  • OpenClaw 版本:2026.3.13
  • Gateway 版本:已知
  • 浏览器:Chrome/Edge/Firefox
  • 操作系统:Any

附加信息

这是懒加载翻译机制的问题。主界面通过 index-*.js 正确加载了中文翻译,但各个功能模块(agents, skills, channels 等)没有对应的中文翻译文件或翻译内容。

Evidence/examples

No response

Additional information

No response

extent analysis

Fix Plan

To fix the issue of missing Chinese translations for certain tabs in the Control UI, we need to ensure that the translation files for each module are properly generated and included in the build process. Here are the steps:

  • Generate translation files: Run the command to generate translation files for each module, including agents, skills, channels, sessions, nodes, and debug. This will create the necessary *.js files in the dist/control-ui/assets/ directory.
  • Update build configuration: Verify that the build configuration includes the generated translation files for each module. This may involve updating the webpack or rollup configuration to include the translation files in the build process.
  • Include translation files in the build: Ensure that the translation files are included in the build by adding them to the index.html file or the main entry point of the application.

Example code snippet to include translation files in the build:

// webpack.config.js
module.exports = {
  // ...
  module: {
    rules: [
      {
        test: /\.js$/,
        use: 'babel-loader',
        exclude: /node_modules/,
      },
      {
        test: /\.js$/,
        use: 'i18n-loader',
        include: /dist\/control-ui\/assets\//,
      },
    ],
  },
  // ...
};

Verification

To verify that the fix worked, follow these steps:

  1. Build the application with the updated configuration.
  2. Open the Control UI in a browser and switch to the Chinese language.
  3. Verify that all tabs, including agents, skills, channels, sessions, nodes, and debug, display the correct Chinese translations.

Extra Tips

  • Ensure that the translation files are properly formatted and contain the correct translations for each module.
  • Consider implementing a automated testing process to verify that the translations are correct and up-to-date.
  • If using a third-party library or framework, consult the documentation to ensure that the translation files are properly configured and included in the build process.

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

openclaw - 💡(How to fix) Fix [Control UI] 部分模块中文翻译缺失 [1 participants]