Skip to content

docs(zh): 翻译 v6 迁移指南 #1276

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

anyaoqi
Copy link

@anyaoqi anyaoqi commented Jun 19, 2025

docs(zh): 翻译 v6 迁移指南

描述

这个 PR 将 Vite v6 迁移指南翻译成了简体中文,更新了 guide/migration.md 文件。

修改内容

  • Node.js 支持更新
  • 默认浏览器目标变更
  • Sass API 变更
  • 已弃用功能移除
  • 进阶部分的破坏性更改

类型

  • 文档更新

附加信息

遵循了 Vite 中文文档的翻译风格和术语表,保持了专业的技术文档翻译质量。

检查列表

  • 我已阅读并遵循了贡献指南
  • 已确保文档格式和样式与现有文档保持一致
  • 文档链接和引用正确

Copy link

vercel bot commented Jun 19, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
cn-vitejs-dev ❌ Failed (Inspect) Jun 19, 2025 9:55am

@thinkasany
Copy link
Collaborator

@anyaoqi 感谢你的贡献,但是我们在 #1277 中已经处理了。

很抱歉的是,的确是你的提交的 PR,按理来说应该先受理你的,但是文档同步的规则稍微有一些不一样,一般由 bot 先提交,然后在 bot 创建的同步 PR 基础上再做冲突解决。不然的话,可能会因为 commit 信息杂乱或者其他的导致 review 和 blame 困难。

如果感兴趣想加入的话,后续可以等待 bot 创建 PR 之后,往 bot 分支提交。

再次感谢你的贡献~

@thinkasany thinkasany closed this Jun 20, 2025
Copy link
Collaborator

@waynzh waynzh left a comment

Choose a reason for hiding this comment

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

感谢贡献!
留了几个小点,抽空可以看着改下哈。

Update: 看PR关掉了,这几个小点还是欢迎直接PR到main分支哈


由于 Vite 的实现发生了改变,一些内部的 API 已经被移除了。如果你依赖于其中的某一个,那么请创建一个 [feature request](https://github.com/vitejs/vite/issues/new?assignees=&labels=enhancement%3A+pending+triage&projects=&template=feature_request.yml)。
## 默认浏览器目标变更 {#default-browser-target-change}
Copy link
Collaborator

Choose a reason for hiding this comment

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

“浏览器目标” 不太好理解,可以改为 “浏览器兼容性目标” 或者直接 “浏览器支持范围”


## 从 v5 迁移 {#migration-from-v5}

查看 Vite v6 文档中的[从 v5 迁移指南](https://v6.vite.dev/guide/migration.html),了解如何将你的应用迁移到 Vite 6,然后再处理本页中提及的变更。
Copy link
Collaborator

Choose a reason for hiding this comment

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

  1. 原文档可以保留,重命名为 migration-from-v5.md
  2. 「从 v5 迁移指南」指向中文文档。比如参考 migration-from-v4.md 的文档

@thinkasany thinkasany mentioned this pull request Jun 20, 2025
3 tasks
@lxKylin
Copy link
Contributor

lxKylin commented Jun 20, 2025

#1277 我弄的,以上几点我也一起弄了吧~

@anyaoqi
Copy link
Author

anyaoqi commented Jun 20, 2025

@thinkasany 好的,非常抱歉,我是首次提交vite翻译PR,不太懂关于bot的规则。现在我理解了,需要等待bot先提交,然后我们再基于bot同步过来的进行翻译, 多谢提醒,我今后会注意。

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.

4 participants