Skip to content

docs(cn): translation part of the missing content#937

Merged
NoiseFan merged 10 commits intovitest-dev:devfrom
NoiseFan:docs/miss
Mar 15, 2026
Merged

docs(cn): translation part of the missing content#937
NoiseFan merged 10 commits intovitest-dev:devfrom
NoiseFan:docs/miss

Conversation

@NoiseFan
Copy link
Copy Markdown
Collaborator

在提交PR之前,请确保您执行以下操作:

  • 曾阅读过翻译须知
  • 检查是否已经有PR以同样的方式解决问题,以避免创建重复。
  • 在此PR中描述正在解决的问题,或引用它解决的问题(例如:fixes #123)。

描述

附加上下文

@netlify
Copy link
Copy Markdown

netlify bot commented Mar 15, 2026

Deploy Preview for cn-vitest ready!

Name Link
🔨 Latest commit a1431ea
🔍 Latest deploy log https://app.netlify.com/projects/cn-vitest/deploys/69b694bcfdd22900080f3163
😎 Deploy Preview https://deploy-preview-937--cn-vitest.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@NoiseFan
Copy link
Copy Markdown
Collaborator Author

#938 相关审核意见合并到本次 pr 中

@NoiseFan NoiseFan merged commit 687f5c8 into vitest-dev:dev Mar 15, 2026
5 checks passed
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