Draft
Conversation
Co-authored-by: studyzy <1635408+studyzy@users.noreply.github.com> Agent-Logs-Url: https://github.com/studyzy/OpenSpec-cn/sessions/a322d457-1b08-406b-9e39-2573aa89de3d
Copilot
AI
changed the title
[WIP] Update displayed text to Chinese
将运行时用户可见的英文文本全部替换为中文
Mar 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
程序运行时展示给用户的文本(警告、错误消息、状态提示等)存在英文字符串,应统一为中文。
修改内容
配置解析警告 (
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 found、Failed to read schema、Template not found等异常消息工作流命令输出 (
src/commands/workflow/templates.ts)Schema: spec-driven→架构: spec-driven测试更新
同步更新了 4 个测试文件中的字符串断言以匹配新的中文文本:
test/core/project-config.test.tstest/core/artifact-graph/resolver.test.tstest/core/artifact-graph/instruction-loader.test.tstest/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.