Skip to content

将运行时用户可见的英文文本全部替换为中文#20

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/update-display-text-to-chinese
Draft

将运行时用户可见的英文文本全部替换为中文#20
Copilot wants to merge 2 commits intomainfrom
copilot/update-display-text-to-chinese

Conversation

Copy link
Copy Markdown

Copilot AI commented Mar 25, 2026

程序运行时展示给用户的文本(警告、错误消息、状态提示等)存在英文字符串,应统一为中文。

修改内容

配置解析警告 (src/core/project-config.ts)

  • 所有 console.warn 消息:YAML 解析失败、字段无效、上下文过大、规则格式错误等
  • validateConfigRules() 返回的警告字符串
  • suggestSchemas() 生成的错误提示(含"您是否想要"、"可用架构"、"修复方法"等)

CLI 输出标签

  • src/commands/validate.ts:spinner 文本 Validating...正在验证...,错误回退 Unknown error未知错误
  • src/commands/change.ts / src/commands/spec.ts / src/commands/validate.ts:校验输出中的 [ERROR]/[WARNING]/[INFO][错误]/[警告]/[信息]

架构/模板加载错误 (src/core/artifact-graph/resolver.ts, instruction-loader.ts)

  • Schema '...' not foundFailed to read schemaTemplate not found 等异常消息

工作流命令输出 (src/commands/workflow/templates.ts)

  • Schema: spec-driven架构: spec-driven

测试更新

同步更新了 4 个测试文件中的字符串断言以匹配新的中文文本:

  • test/core/project-config.test.ts
  • test/core/artifact-graph/resolver.test.ts
  • test/core/artifact-graph/instruction-loader.test.ts
  • test/commands/artifact-workflow.test.ts

🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Copilot AI changed the title [WIP] Update displayed text to Chinese 将运行时用户可见的英文文本全部替换为中文 Mar 25, 2026
Copilot AI requested a review from studyzy March 25, 2026 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants