Skip to content

设置 › 能力页按窗口语言显示(Cut 31) #3255

Closed

Description

@Birfy

Written-by: Dev

在中文窗口里,设置 › 能力页仍有一处标签和六句宿主拒绝是英文:添加能力表单里的 Description 标签,以及保存被宿主拒绝时表单红字显示的六句固定句。

复现(窗口语言为中文)

  1. 打开设置,左列点「能力」,右键「添加能力」。
  2. 表单里 名字 / 类型 / Description(英文) / 连接方式 / 命令 …。
  3. 类型保持「MCP 服务」、连接方式「本地命令」、命令留空,点「添加能力」→ 红字 Enter a command for the MCP server.;换成「HTTP 服务」、URL 留空 → Enter a valid HTTP or HTTPS URL.;名字填 Bad_Name → 名字规则句;环境变量填 {"A": 1} → Environment variables must contain text values.;请求头填 {"A": 1} → Headers must contain text values.;用已存在的名字换一种类型保存 → A capability cannot change its kind. Delete it and save a new one.
  4. 英文窗口下同一屏按预期仍是英文。

期望:这七处随窗口语言显示中文,英文窗口逐字不变。

范围:只补 core/src/client/i18n.js 的字典条目(1 个标签 + 6 句宿主固定拒绝),页面与 api.js 的既有通路已就位;不改 capability-settings.js 的逻辑、不改 core/src/host/**、不改英文句子。切片规格见 #3114 评论 7031558354(Cut 31)。本单由实现 PR 自己开,移动端/桌面端同一份前端。

Activity

  1. added
    bug
    area:ui
    on Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:uibug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions