docs(cn): translation part of the missing content#937
Merged
NoiseFan merged 10 commits intovitest-dev:devfrom Mar 15, 2026
Merged
docs(cn): translation part of the missing content#937NoiseFan merged 10 commits intovitest-dev:devfrom
NoiseFan merged 10 commits intovitest-dev:devfrom
Conversation
✅ Deploy Preview for cn-vitest ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
There was a problem hiding this comment.
Pull request overview
本 PR 主要补齐 docs-cn 中多处尚未翻译/待翻译的内容,并同步修正文档内部链接与页面结构(如 API 页面拆分后对应的新路径),同时清理不再需要的 API 索引页。
Changes:
- 翻译并替换多处遗留英文段落/注释(移除若干 TODO translation 标记)。
- 更新若干 API/指南链接到新的路由结构(例如从
/api/#...迁移到/api/expect#...、/api/expect-typeof等)。 - 清理/调整站点侧边栏与组件文案(例如 Deprecated 标记中文化)并删除
api/index.md。
Reviewed changes
Copilot reviewed 18 out of 18 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| guide/ui.md | 补齐 UI 指南中模块加载耗时阈值说明的中文翻译。 |
| guide/testing-types.md | 更新 expectTypeOf API 的链接到新路由。 |
| guide/snapshot.md | 更新快照相关 API 链接到 /api/expect 页面锚点。 |
| guide/parallelism.md | 补齐并发分组内 hooks 顺序说明的中文翻译。 |
| guide/migration.md | 大段补译迁移指南内容,并补充若干小节标题/锚点。 |
| guide/improving-performance.md | 增加顶层标题并补译部分段落、微调排版。 |
| guide/coverage.md | 补齐 UI 模式覆盖率说明的中文翻译。 |
| guide/common-errors.md | 将常见错误小节标题中文化并补充锚点、补译段落。 |
| guide/cli.md | 补齐 --static-parse 相关说明的中文翻译。 |
| guide/cli-generated.md | 补齐部分 CLI 选项说明中文翻译与字段名本地化。 |
| blog/vitest-3.md | 调整“迁移手册”文案为“迁移指南”。 |
| api/test.md | 调整迁移指南引用文案,并保持链接一致性。 |
| api/index.md | 删除旧的 API 索引页(与新分拆的 API 路由体系对齐)。 |
| api/expect.md | 补齐开头说明与部分段落翻译,并更新对 test 的链接。 |
| api/advanced/test-case.md | 补齐 meta 相关说明翻译。 |
| api/advanced/runner.md | 补齐 runner 示例注释翻译。 |
| .vitepress/config.ts | 侧边栏条目文案中文化(Mocha/Chai/Sinon 迁移条目)。 |
| .vitepress/components/Deprecated.vue | Deprecated 标记文案中文化为“弃用”。 |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Collaborator
Author
|
#938 相关审核意见合并到本次 pr 中 |
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.
在提交PR之前,请确保您执行以下操作:
fixes #123)。描述
附加上下文