From aef883059ffcedc09291d7cc6535f2e5f65024e0 Mon Sep 17 00:00:00 2001 From: Yucohny Date: Sun, 25 Jun 2023 11:21:34 +0800 Subject: [PATCH 1/7] docs(cn): translate blog/index --- src/content/blog/index.md | 52 +++++++++++++++++++-------------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/src/content/blog/index.md b/src/content/blog/index.md index fc8a2969bd..7d4809d474 100644 --- a/src/content/blog/index.md +++ b/src/content/blog/index.md @@ -4,72 +4,72 @@ title: React Blog -This blog is the official source for the updates from the React team. Anything important, including release notes or deprecation notices, will be posted here first. You can also follow the [@reactjs](https://twitter.com/reactjs) account on Twitter, but you won’t miss anything essential if you only read this blog. +这个博客是 React 团队更新的官方来源。任何重要的内容,包括发布说明或弃用通知,都会首先在这里发布。你也可以关注 Twitter 的 [@reactjs](https://twitter.com/reactjs) 账号,但如果你只阅读这个博客,你不会错过任何重要的内容。
- + -Traditionally, new React features used to only be available at Meta first, and land in the open source releases later. We'd like to offer the React community an option to adopt individual new features as soon as their design is close to final--similar to how Meta uses React internally. We are introducing a new officially supported Canary release channel. It lets curated setups like frameworks decouple adoption of individual React features from the React release schedule. +在过去,React 的新功能将仅在 Meta 中使用,然后才会在开源版本中发布。我们希望为 React 社区提供一种选择,使他们能够在新功能设计接近最终状态时立即采用这些功能——类似于 Meta 内部使用 React 的方式。我们正在推出一个新的官方支持的 Canary 发布渠道。它允许像框架这样的精选设置,对单个 React 功能的采用与 React 发布计划分离开。 - + -In React Labs posts, we write about projects in active research and development. Since our last update, we've made significant progress on React Server Components, Asset Loading, Optimizing Compiler, Offscreen Rendering, and Transition Tracing, and we'd like to share what we learned. +在 React Labs 的文章中,我们讲述了正在进行研究和开发的项目。自上次更新以来,我们在 React 服务器组件、资产加载、优化编译器、离屏渲染和过渡追踪方面取得了重要进展,并希望分享我们所学到的知识。 - + -Today we are thrilled to launch react.dev, the new home for React and its documentation. In this post, we would like to give you a tour of the new site. +今天,我们非常高兴推出 react.dev,React 及其文档的新家。在本文中,我们想带你参观新网站。 - -React 18 was years in the making, and with it brought valuable lessons for the React team. Its release was the result of many years of research and exploring many paths. Some of those paths were successful; many more were dead-ends that led to new insights. One lesson we’ve learned is that it’s frustrating for the community to wait for new features without having insight into these paths that we’re exploring... + +React 18 经过多年的努力才得以问世,它为 React 团队带来了宝贵的经验教训。它的发布是多年的研究和探索的结果。其中一些路径是成功的,但更多的是死胡同,但是也带来了新的见解。我们学到的一个教训是,如果无法了解我们正在探索的这些路径,那么社区在等待新功能的过程中将会非常沮丧…… - -React 18 is now available on npm! In our last post, we shared step-by-step instructions for upgrading your app to React 18. In this post, we’ll give an overview of what’s new in React 18, and what it means for the future... + +React 18 现已在 npm 上发布!在我们上一篇文章中,我们分享了应用程序升级到 React 18 的逐步说明。在本文中,我们将概述 React 18 的新功能,以及它对未来的意义…… - -As we shared in the release post, React 18 introduces features powered by our new concurrent renderer, with a gradual adoption strategy for existing applications. In this post, we will guide you through the steps for upgrading to React 18... + +正如我们在文章中所分享的那样,React 18 引入了由我们的新并发渲染器提供支持的功能,并采用了逐步采用策略,以适用于现有应用程序。在本文中,我们将指导完成升级到 React 18 的步骤…… - -Last week we hosted our 6th React Conf. In previous years, we’ve used the React Conf stage to deliver industry changing announcements such as React Native and React Hooks. This year, we shared our multi-platform vision for React, starting with the release of React 18 and gradual adoption of concurrent features... + +上周,我们举办了第六届 React Conf。在以往的几年中,我们在 React Conf 的舞台上发布了行业改变的信息,如 React Native 和 React Hooks。今年,我们从发布 React 18 和逐步采用并发功能开始,分享了我们对 React 的多平台愿景…… - -The React team is excited to share a few updates: + +React 团队很高兴分享一些更新: -- We’ve started work on the React 18 release, which will be our next major version. -- We’ve created a Working Group to prepare the community for gradual adoption of new features in React 18. -- We’ve published a React 18 Alpha so that library authors can try it and provide feedback... +- 我们开始对 React 18 添加开发,这将是我们的下一个主要版本。 +- 我们创建了一个工作组,为社区逐步采用 React 18 的新功能做准备。 +- 我们发布了 React 18 Alpha,以便库作者可以尝试并提供反馈…… - -2020 has been a long year. As it comes to an end we wanted to share a special Holiday Update on our research into zero-bundle-size React Server Components. To introduce React Server Components, we have prepared a talk and a demo. If you want, you can check them out during the holidays, or later when work picks back up in the new year... + +2020 年是漫长的一年。随着它的结束,我们想在节日里分享一份特别的更新,介绍我们对零打包大小的 React 服务器组件的研究。为了介绍 React 服务器组件,我们准备了一次演讲和演示。如果你愿意,在假期期间或新年工作重新开始后查看它们……
--- -### All release notes {/*all-release-notes*/} +### 所有的发布笔记 {/*all-release-notes*/} -Not every React release deserves its own blog post, but you can find a detailed changelog for every release in the [`CHANGELOG.md`](https://github.com/facebook/react/blob/main/CHANGELOG.md) file in the React repository, as well as on the [Releases](https://github.com/facebook/react/releases) page. +并不是每个 React 版本都值得拥有自己的博客文章,但是你可以在 React 仓库的 `CHANGELOG.md` 或 [发布页面](https://github.com/facebook/react/releases) 中找到每个版本的详细变更。 --- -### Older posts {/*older-posts*/} +### 更早的文章 {/*older-posts*/} -See the [older posts.](https://reactjs.org/blog/all.html) +你可以在 [这里](https://reactjs.org/blog/all.html) 查看更早的文章。
From cee48c5f62c768ad64e095a28135327e70570ebb Mon Sep 17 00:00:00 2001 From: Yucohny <79147654+Yucohny@users.noreply.github.com> Date: Sun, 25 Jun 2023 19:25:56 +0800 Subject: [PATCH 2/7] Update src/content/blog/index.md Co-authored-by: Xavi Lee --- src/content/blog/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/blog/index.md b/src/content/blog/index.md index 7d4809d474..8742357671 100644 --- a/src/content/blog/index.md +++ b/src/content/blog/index.md @@ -4,7 +4,7 @@ title: React Blog -这个博客是 React 团队更新的官方来源。任何重要的内容,包括发布说明或弃用通知,都会首先在这里发布。你也可以关注 Twitter 的 [@reactjs](https://twitter.com/reactjs) 账号,但如果你只阅读这个博客,你不会错过任何重要的内容。 +这个博客是 React 团队更新的官方来源。任何重要的内容,包括发布说明或弃用通知,都会首先在这里发布。你也可以关注 Twitter 的 [@reactjs](https://twitter.com/reactjs) 账号,但如果你只阅读这个博客,你也不会错过任何重要的内容。 From 839c543833d3808042222553032bcd85aa625060 Mon Sep 17 00:00:00 2001 From: Yucohny <79147654+Yucohny@users.noreply.github.com> Date: Sun, 25 Jun 2023 19:26:05 +0800 Subject: [PATCH 3/7] Update src/content/blog/index.md Co-authored-by: Xavi Lee --- src/content/blog/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/blog/index.md b/src/content/blog/index.md index 8742357671..f7029386fc 100644 --- a/src/content/blog/index.md +++ b/src/content/blog/index.md @@ -30,7 +30,7 @@ title: React Blog - + React 18 经过多年的努力才得以问世,它为 React 团队带来了宝贵的经验教训。它的发布是多年的研究和探索的结果。其中一些路径是成功的,但更多的是死胡同,但是也带来了新的见解。我们学到的一个教训是,如果无法了解我们正在探索的这些路径,那么社区在等待新功能的过程中将会非常沮丧…… From d8475da5c566953e41a81ef1a2a31ef5106c13e1 Mon Sep 17 00:00:00 2001 From: Yucohny <79147654+Yucohny@users.noreply.github.com> Date: Sun, 25 Jun 2023 19:26:18 +0800 Subject: [PATCH 4/7] Update src/content/blog/index.md Co-authored-by: Xavi Lee --- src/content/blog/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/blog/index.md b/src/content/blog/index.md index f7029386fc..2e81e8270e 100644 --- a/src/content/blog/index.md +++ b/src/content/blog/index.md @@ -31,7 +31,7 @@ title: React Blog -React 18 经过多年的努力才得以问世,它为 React 团队带来了宝贵的经验教训。它的发布是多年的研究和探索的结果。其中一些路径是成功的,但更多的是死胡同,但是也带来了新的见解。我们学到的一个教训是,如果无法了解我们正在探索的这些路径,那么社区在等待新功能的过程中将会非常沮丧…… +React 18 经过多年的努力才得以问世,它为 React 团队带来了宝贵的经验教训。它的发布是多年的研究和探索的结果。其中一些路径是成功的,但更多的是死胡同,但是也带来了新的见解。我们学到的一个教训是,对社区来说,在等待新功能时没有了解我们正在探索的路径是令人沮丧的。 From 02d83106e3b3f266e819b79d381c0296241676bb Mon Sep 17 00:00:00 2001 From: Yucohny <79147654+Yucohny@users.noreply.github.com> Date: Mon, 26 Jun 2023 08:24:12 +0800 Subject: [PATCH 5/7] docs(cn): review and update --- src/content/blog/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/blog/index.md b/src/content/blog/index.md index 2e81e8270e..d375ac083e 100644 --- a/src/content/blog/index.md +++ b/src/content/blog/index.md @@ -16,7 +16,7 @@ title: React Blog - + 在 React Labs 的文章中,我们讲述了正在进行研究和开发的项目。自上次更新以来,我们在 React 服务器组件、资产加载、优化编译器、离屏渲染和过渡追踪方面取得了重要进展,并希望分享我们所学到的知识。 From 68519cb450d6d86d7307d8d57155a874f10bda02 Mon Sep 17 00:00:00 2001 From: Yucohny <79147654+Yucohny@users.noreply.github.com> Date: Mon, 26 Jun 2023 09:22:03 +0800 Subject: [PATCH 6/7] Update src/content/blog/index.md Co-authored-by: Xavi Lee --- src/content/blog/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/blog/index.md b/src/content/blog/index.md index d375ac083e..e229e14ab4 100644 --- a/src/content/blog/index.md +++ b/src/content/blog/index.md @@ -49,7 +49,7 @@ React 18 现已在 npm 上发布!在我们上一篇文章中,我们分享了 React 团队很高兴分享一些更新: -- 我们开始对 React 18 添加开发,这将是我们的下一个主要版本。 +- 我们已经开始了 React 18 的开发工作,这将是我们的下一个主要版本。 - 我们创建了一个工作组,为社区逐步采用 React 18 的新功能做准备。 - 我们发布了 React 18 Alpha,以便库作者可以尝试并提供反馈…… From f221ea1f914054acd384a75fd40a7c2b3a432da0 Mon Sep 17 00:00:00 2001 From: Yucohny <79147654+Yucohny@users.noreply.github.com> Date: Mon, 26 Jun 2023 09:22:11 +0800 Subject: [PATCH 7/7] Update src/content/blog/index.md Co-authored-by: Xavi Lee --- src/content/blog/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/blog/index.md b/src/content/blog/index.md index e229e14ab4..cb03a01823 100644 --- a/src/content/blog/index.md +++ b/src/content/blog/index.md @@ -64,7 +64,7 @@ React 团队很高兴分享一些更新: ### 所有的发布笔记 {/*all-release-notes*/} -并不是每个 React 版本都值得拥有自己的博客文章,但是你可以在 React 仓库的 `CHANGELOG.md` 或 [发布页面](https://github.com/facebook/react/releases) 中找到每个版本的详细变更。 +并不是每个 React 版本都值得拥有专属博客文章,但是你可以在 React 仓库的 `CHANGELOG.md` 或 [发布页面](https://github.com/facebook/react/releases) 中找到每个版本的详细变更。 ---