From ac53b39547b7514aab60e80a1f5d6888deba2b8a Mon Sep 17 00:00:00 2001 From: BlakeNeko Date: Tue, 18 Feb 2025 19:15:26 +0800 Subject: [PATCH 1/8] docs(cn): translate learn/setup into Chinese --- src/content/learn/setup.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/content/learn/setup.md b/src/content/learn/setup.md index 84608b4270..22bb7a2202 100644 --- a/src/content/learn/setup.md +++ b/src/content/learn/setup.md @@ -1,32 +1,32 @@ --- -title: Setup +title: 配置 --- -React integrates with tools like editors, TypeScript, browser extensions, and compliers. This section will help you get your environment set up. +React 与编辑器、TypeScript、浏览器扩展和编译器等多种工具集成。本节将帮助您完成环境的配置。 -## Editor Setup {/*editor-setup*/} +## 编辑器配置 {/*editor-setup*/} -See our [recommended editors](/learn/editor-setup) and learn how to set them up to work with React. +请参阅我们的 [推荐编辑器](/learn/editor-setup),了解如何配置它们以与 React 协同工作。 -## Using TypeScript {/*using-typescript*/} +## 使用 TypeScript {/*using-typescript*/} -TypeScript is a popular way to add type definitions to JavaScript codebases. [Learn how to integrate TypeScript into your React projects](/learn/typescript). +使用 TypeScript 是一种为 JavaScript 代码库添加类型定义的流行方式。[了解如何将 TypeScript 集成到您的 React 项目中](/learn/typescript)。 -## React Developer Tools {/*react-developer-tools*/} +## React 开发者工具 {/*react-developer-tools*/} -React Developer Tools is a browser extension that can inspect React components, edit props and state, and identify performance problems. Learn how to install it [here](learn/react-developer-tools). +React 开发者工具是一款浏览器扩展,它能够检查 React 组件、编辑 props 和 state,并识别性能问题。在 [这里](learn/react-developer-tools) 了解如何安装它。 ## React Compiler {/*react-compiler*/} -React Compiler is a tool that automatically optimizes your React app. [Learn more](/learn/react-compiler). +React Compiler 是一款能自动优化您的 React 应用程序的工具。[了解更多](/learn/react-compiler)。 -## Start a React Project from scratch {/*start-a-react-project-from-scratch*/} +## 从头开始创建一个 React 项目 {/*start-a-react-project-from-scratch*/} -If you want to build your own framework, you can [start a React project from scratch](/learn/start-a-react-project-from-scratch). +如果您想构建自己的框架,可以 [从头开始创建一个 React 项目](/learn/start-a-react-project-from-scratch)。 ## Next steps {/*next-steps*/} -Head to the [Quick Start](/learn) guide for a tour of the most important React concepts you will encounter every day. +前往 [快速入门](/learn) 指南,了解您每天都会遇到的最重要的 React 概念。 From a63a77ecf1a2e309a4107d295ed10748f1240ca0 Mon Sep 17 00:00:00 2001 From: BlakeNeko Date: Tue, 18 Feb 2025 19:38:34 +0800 Subject: [PATCH 2/8] fix: add missing translations --- src/content/learn/setup.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/learn/setup.md b/src/content/learn/setup.md index 22bb7a2202..3c6b42ec2a 100644 --- a/src/content/learn/setup.md +++ b/src/content/learn/setup.md @@ -27,6 +27,6 @@ React Compiler 是一款能自动优化您的 React 应用程序的工具。[了 如果您想构建自己的框架,可以 [从头开始创建一个 React 项目](/learn/start-a-react-project-from-scratch)。 -## Next steps {/*next-steps*/} +## 下一步 {/*next-steps*/} 前往 [快速入门](/learn) 指南,了解您每天都会遇到的最重要的 React 概念。 From 73aad3228bd7b7bbdc31b39ada384e4ed8f88ceb Mon Sep 17 00:00:00 2001 From: BlakeNeko <58238612+BlakeNeko@users.noreply.github.com> Date: Wed, 19 Feb 2025 10:58:16 +0800 Subject: [PATCH 3/8] Update src/content/learn/setup.md Co-authored-by: Xleine --- src/content/learn/setup.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/learn/setup.md b/src/content/learn/setup.md index 3c6b42ec2a..e005e0e2c1 100644 --- a/src/content/learn/setup.md +++ b/src/content/learn/setup.md @@ -21,7 +21,7 @@ React 开发者工具是一款浏览器扩展,它能够检查 React 组件、 ## React Compiler {/*react-compiler*/} -React Compiler 是一款能自动优化您的 React 应用程序的工具。[了解更多](/learn/react-compiler)。 +React Compiler 是一款自动优化 React 应用程序的工具。[了解更多](/learn/react-compiler)。 ## 从头开始创建一个 React 项目 {/*start-a-react-project-from-scratch*/} From 22f61b611fcaefa7241b2c5ac299d2288dae536b Mon Sep 17 00:00:00 2001 From: BlakeNeko <58238612+BlakeNeko@users.noreply.github.com> Date: Wed, 19 Feb 2025 10:58:49 +0800 Subject: [PATCH 4/8] Update src/content/learn/setup.md Co-authored-by: Xleine --- src/content/learn/setup.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/learn/setup.md b/src/content/learn/setup.md index e005e0e2c1..2eb6ec5e94 100644 --- a/src/content/learn/setup.md +++ b/src/content/learn/setup.md @@ -29,4 +29,4 @@ React Compiler 是一款自动优化 React 应用程序的工具。[了解更多 ## 下一步 {/*next-steps*/} -前往 [快速入门](/learn) 指南,了解您每天都会遇到的最重要的 React 概念。 +前往 [快速入门](/learn) 指南,了解你每天都会遇到的最重要的 React 概念。 From b482abedcc01b917500e4bd47b04140309d433b6 Mon Sep 17 00:00:00 2001 From: BlakeNeko <58238612+BlakeNeko@users.noreply.github.com> Date: Wed, 19 Feb 2025 11:03:08 +0800 Subject: [PATCH 5/8] Update src/content/learn/setup.md Co-authored-by: Xleine --- src/content/learn/setup.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/learn/setup.md b/src/content/learn/setup.md index 2eb6ec5e94..8a58cfae5e 100644 --- a/src/content/learn/setup.md +++ b/src/content/learn/setup.md @@ -13,7 +13,7 @@ React 与编辑器、TypeScript、浏览器扩展和编译器等多种工具集 ## 使用 TypeScript {/*using-typescript*/} -使用 TypeScript 是一种为 JavaScript 代码库添加类型定义的流行方式。[了解如何将 TypeScript 集成到您的 React 项目中](/learn/typescript)。 +TypeScript 是一种为 JavaScript 代码库添加类型定义的流行方式。[了解如何将 TypeScript 集成到您的 React 项目中](/learn/typescript)。 ## React 开发者工具 {/*react-developer-tools*/} From bd088da0299a268dac5fcf6baed6df72e2c1bc4a Mon Sep 17 00:00:00 2001 From: BlakeNeko Date: Wed, 19 Feb 2025 11:06:38 +0800 Subject: [PATCH 6/8] fix: remove duplicated paragraph --- src/content/learn/setup.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/content/learn/setup.md b/src/content/learn/setup.md index 8a58cfae5e..4da1b0380f 100644 --- a/src/content/learn/setup.md +++ b/src/content/learn/setup.md @@ -23,10 +23,6 @@ React 开发者工具是一款浏览器扩展,它能够检查 React 组件、 React Compiler 是一款自动优化 React 应用程序的工具。[了解更多](/learn/react-compiler)。 -## 从头开始创建一个 React 项目 {/*start-a-react-project-from-scratch*/} - -如果您想构建自己的框架,可以 [从头开始创建一个 React 项目](/learn/start-a-react-project-from-scratch)。 - ## 下一步 {/*next-steps*/} 前往 [快速入门](/learn) 指南,了解你每天都会遇到的最重要的 React 概念。 From 87fcea03f85e6e6223d8bdaf9a250386254d2700 Mon Sep 17 00:00:00 2001 From: BlakeNeko Date: Wed, 19 Feb 2025 11:09:16 +0800 Subject: [PATCH 7/8] fix: change personal pronouns --- src/content/learn/setup.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/content/learn/setup.md b/src/content/learn/setup.md index 4da1b0380f..6b0b4ba66e 100644 --- a/src/content/learn/setup.md +++ b/src/content/learn/setup.md @@ -3,7 +3,7 @@ title: 配置 --- -React 与编辑器、TypeScript、浏览器扩展和编译器等多种工具集成。本节将帮助您完成环境的配置。 +React 与编辑器、TypeScript、浏览器扩展和编译器等多种工具集成。本节将帮助你完成环境的配置。 @@ -13,7 +13,7 @@ React 与编辑器、TypeScript、浏览器扩展和编译器等多种工具集 ## 使用 TypeScript {/*using-typescript*/} -TypeScript 是一种为 JavaScript 代码库添加类型定义的流行方式。[了解如何将 TypeScript 集成到您的 React 项目中](/learn/typescript)。 +TypeScript 是一种为 JavaScript 代码库添加类型定义的流行方式。[了解如何将 TypeScript 集成到你的 React 项目中](/learn/typescript)。 ## React 开发者工具 {/*react-developer-tools*/} From 0ae10fc9ec8e1b89e561b40536f70dac440f8d52 Mon Sep 17 00:00:00 2001 From: Xavi Lee Date: Wed, 19 Feb 2025 12:57:12 +0800 Subject: [PATCH 8/8] Update src/content/learn/setup.md --- src/content/learn/setup.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/learn/setup.md b/src/content/learn/setup.md index 6b0b4ba66e..67750ec52c 100644 --- a/src/content/learn/setup.md +++ b/src/content/learn/setup.md @@ -3,7 +3,7 @@ title: 配置 --- -React 与编辑器、TypeScript、浏览器扩展和编译器等多种工具集成。本节将帮助你完成环境的配置。 +React 可与编辑器、TypeScript、浏览器扩展和编译器等多种工具集成。本节将帮助你完成环境的配置。