[建议 / Feature] 插件市场插件描述未按系统语言显示中文(description_i18n.zh-CN 已提供但未生效)
Open
Nobody has claimed this yet.
priority: P2
- Dominant language
- No language data
- Stars
- 22
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
问题描述
我的 ZCode 客户端语言设置为中文(locale: zh-CN,localePreference: system,系统语言中文),但插件市场(Plugins / Marketplace)里每个插件的描述仍只显示英文,无法快速判断这些插件是做什么的。
排查发现
- 官方市场
marketplace.json数据源里,插件已经提供了中文翻译,存放在description_i18n.zh-CN字段,例如:
{
"name": "cloudbase-skills",
"description": "CloudBase development skills and MCP integration for building, deploying...",
"description_i18n": {
"en": "CloudBase development skills and MCP integration for ...",
"zh-CN": "腾讯云 CloudBase 开发技能与 MCP 集成,覆盖 Web、微信小程序……"
}
}
- 但前端渲染插件列表时,读的是
description(英文)字段,没有根据当前 locale 去取description_i18n.zh-CN。插件名称的displayNameI18n同理未被使用。
期望
在 locale = zh-CN 时,优先显示 description_i18n.zh-CN / displayNameI18n.zh-CN;对应语言缺失时回退到英文 description / displayName,从而提升中文用户体验。
环境
- macOS,系统语言中文
- ZCode 最新版(Electron,版本 3.11.2)
- 涉及市场:
zcode-plugins-official(官方市场已带中文翻译);claude-plugins-official(Anthropic 仓库,本身只有英文)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the plugin marketplace rendering in the Electron client and compare its use of marketplace.json fields with the current locale. Verify the zh-CN values in description_i18n and displayNameI18n are preferred when available, with English description and displayName as fallback; also check the English-only claude-plugins-official data.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- electron
- Domain
- desktop, frontend, internationalization
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100