Skip to content

Commit 070deb3

Browse files
authored
Merge pull request #4169 from dsr20030703/source
Update part 2 Chinese translation
2 parents a78cfac + 0bdf64c commit 070deb3

File tree

11 files changed

+1173
-841
lines changed

11 files changed

+1173
-841
lines changed

src/content/1/zh/part1a.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ export default [
476476
```
477477

478478
<!-- We will get to know ESLint in more detail [in part 3](/en/part3/validation_and_es_lint#lint). -->
479-
我们将在[第3章节](/zh/part3/validation_and_es_lint#lint)详细介绍到ESLint
479+
我们将在[第3章节](/zh/part3/es_lint与代码检查#lint)详细介绍ESLint
480480

481481
<!-- ### Some notes -->
482482
### 一些注意事项
@@ -697,16 +697,16 @@ const App = () => {
697697

698698
<div class="tasks">
699699
<!-- <h3>Exercises 1.1.-1.2.</h3>-->
700-
<h3>练习1.1.-1.2.</h3>
700+
<h3>练习1.1.~1.2.</h3>
701701

702702
<!-- The exercises are submitted via GitHub, and by marking the exercises as done in the "my submissions" tab of the [submission application](https://studies.cs.helsinki.fi/stats/courses/fullstackopen). -->
703-
练习通过GitHub上交,并在[上交应用](https://studies.cs.helsinki.fi/stats/courses/fullstackopen)的“我的上交”标签页中标记所有已完成的练习。
703+
练习通过GitHub上交,并在[上交应用](https://studies.cs.helsinki.fi/stats/courses/fullstackopen)的“my submissions”标签页中标记所有已完成的练习。
704704

705705
<!-- The exercises are submitted **one part at a time**. When you have submitted the exercises for a part of the course you can no longer submit undone exercises for the same part.-->
706706
练习是**一次上交一个章节**的。当你上交了课程中某一章节的练习,你就不能再上交同一章节的未完成的练习。
707707

708708
<!-- Note that in this part, there are [more exercises](/en/part1/a_more_complex_state_debugging_react_apps#exercises-1-6-1-14) besides those found below. <i>Do not submit your work</i> until you have completed all of the exercises you want to submit for the part. -->
709-
请注意,在这一章节,除了下面的练习,还有[更多的练习](/zh/part1/深入_react_应用调试#练习-1-6-1-14)。在你完成该章节的所有练习之前,<i>请不要上交你的作品</i>。
709+
请注意,在这一章节,除了下面的练习,还有[更多的练习](/zh/part1/复杂状态,调试_react应用#练习-1-6-1-14)。在你完成该章节的所有练习之前,<i>请不要上交你的作品</i>。
710710

711711
<!-- You may submit all the exercises of this course into the same repository, or use multiple repositories. If you submit exercises of different parts into the same repository, please use a sensible naming scheme for the directories.-->
712712
你可以将本课程的所有练习上交到同一个仓库,也可以使用多个仓库。如果你将不同章节的练习上交到同一个仓库,请使用合理的目录命名方案。
@@ -732,16 +732,16 @@ part2
732732
课程的每一章节都有一个目录,每个目录下面还有一系列练习的目录,如第1章节的“unicafe”。
733733

734734
<!-- Most of the exercises of the course build a larger application, eg. courseinfo, unicafe and anecdotes in this part, bit by bit. It is enough to submit the completed application. You can make a commit after each exercise, but that is not compulsory. For example the course info app is built in exercises 1.1.-1.5. It is just the end result after 1.5 that you need to submit! -->
735-
课程中的大多数联系都会一点一点地构成更大的应用,比如这一章节的courseinfo、unicafe和anecdotes。只要上交最终完成的应用就可以了。你可以每完成一个练习就在git中做一次提交,但这不是必须的。比如练习1.1.-1.5会构建一个课程信息的应用,只需要上交完成1.5后的成果就可以了!
735+
课程中的大多数联系都会一点一点地构成更大的应用,比如这一章节的courseinfo、unicafe和anecdotes。只要上交最终完成的应用就可以了。你可以每完成一道练习就在git中做一次提交,但这不是必须的。比如练习1.1.~1.5会构建一个课程信息的应用,只需要上交完成1.5后的成果就可以了!
736736

737737
<!-- For each web application for a series of exercises, it is recommended to submit all files relating to that application, except for the directory <i>node\_modules</i>.-->
738-
对于每个Web应用的系列练习,建议上交所有与该应用有关的文件,除了目录<i>node\_modules</i>。
738+
对于每道Web应用的系列练习,建议上交所有与该应用有关的文件,除了目录<i>node\_modules</i>。
739739

740740
<!-- <h4>1.1: Course Information, step 1</h4> -->
741741
<h4>1.1:课程信息,第1步</h4>
742742

743743
<!-- <i>The application that we will start working on in this exercise will be further developed in a few of the following exercises. In this and other upcoming exercise sets in this course, it is enough to only submit the final state of the application. If desired, you may also create a commit for each exercise of the series, but this is entirely optional.</i> -->
744-
<i>我们将在本练习中开始处理的应用程序将在以下几个练习中得到进一步开发。在本课程的这个和接下来的练习集中,只要上交应用程序的最终状态就足够了。如果你想,你也可以为系列的每个练习创建一个git提交,但这不是必要的。</i>
744+
<i>我们在这道练习中将要开始处理的应用程序将在以下几道练习中得到进一步开发。在本课程的这个和接下来的练习集中,只要上交应用程序的最终状态就足够了。如果你想,你也可以为系列的每道练习创建一个git提交,但这不是必要的。</i>
745745

746746
<!-- Use Vite to initialize a new application. Modify <i>main.jsx</i> to match the following-->
747747
使用Vite来初始化一个新的应用。修改<i>main.jsx</i>为

src/content/1/zh/part1b.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ const result = average(2, 5)
292292

293293
<div class="tasks">
294294
<!-- <h3>Exercises 1.3.-1.5.</h3>-->
295-
<h3>练习1.3.-1.5.</h3>
295+
<h3>练习1.3.~1.5.</h3>
296296

297297
<!-- <i>We continue building the application that we started working on in the previous exercises. You can write the code into the same project since we are only interested in the final state of the submitted application.</i> -->
298298
<i>我们将继续构建我们在之前练习中开始编写的应用程序。你可以将代码编写到同一个项目中,因为我们只关心上交的应用程序的最终状态。</i>
@@ -313,7 +313,7 @@ const Header = (props) => {
313313
> <i>Objects are not valid as a React child</i>
314314
315315
<!-- keep in mind the things told [here](/en/part1/introduction_to_react#do-not-render-objects). -->
316-
记住[这里](/zh/part1/introduction_to_react#do-not-render-objects)提到的内容。
316+
记住[这里](/zh/part1/react简介#不要渲染对象)提到的内容。
317317

318318
<!-- <h4>1.3: Course Information step 3</h4> -->
319319
<h4>1.3:课程信息 第3步</h4>

src/content/1/zh/part1c.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -803,7 +803,7 @@ const Display = (props) => {
803803
<!-- The component only uses the _counter_ field of its <i>props</i>.-->
804804
该组件只使用其<i>props</i>的_counter_字段。
805805
<!-- This means we can simplify the component by using [destructuring](/en/part1/component_state_event_handlers#destructuring), like so:-->
806-
这意味着我们可以通过使用[解构](/zh/part1/component_state_event_handlers#destructuring)来简化组件,像这样:
806+
这意味着我们可以通过使用[解构](/zh/part1/组件状态,事件处理#解构)来简化组件,像这样:
807807
808808
```js
809809
const Display = ({ counter }) => {

src/content/1/zh/part1d.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1372,16 +1372,16 @@ Copilot以及其他大语言模型提供的提示的有用程度各不相同。
13721372
<div class="tasks">
13731373

13741374
<!-- <h3>Exercises 1.6.-1.14.</h3> -->
1375-
<h3>练习1.6.-1.14.</h3>
1375+
<h3>练习1.6.~1.14.</h3>
13761376

13771377
<!-- Submit your solutions to the exercises by first pushing your code to GitHub and then marking the completed exercises into the "my submissions" tab of the [submission application](https://studies.cs.helsinki.fi/stats/courses/fullstackopen). -->
1378-
要上交练习的解答,先将你的代码推送到GitHub,然后在[上交应用](https://studies.cs.helsinki.fi/stats/courses/fullstackopen)的“我的上交”标签页将练习标记为已完成。
1378+
要上交练习的解答,先将你的代码推送到GitHub,然后在[上交应用](https://studies.cs.helsinki.fi/stats/courses/fullstackopen)的“my submissions”标签页将练习标记为已完成。
13791379

13801380
<!-- Remember, submit **all** the exercises of one part **in a single submission**. Once you have submitted your solutions for one part, **you cannot submit more exercises to that part any more**.-->
13811381
记住,**一次性上交**一个章节的**所有**练习。一旦你上交了一个章节的解答,**你就不能再上交该章节的练习了**
13821382

13831383
<!-- <i>Some of the exercises work on the same application. In these cases, it is sufficient to submit just the final version of the application. If you wish, you can make a commit after every finished exercise, but it is not mandatory.</i> -->
1384-
<i>有些练习开发的是同一个应用。对于这些练习,只要上交应用的最终版本就够了。你也可以每完成一个练习就在git中提交一次,但并不强制。</i>
1384+
<i>有些练习开发的是同一个应用。对于这些练习,只要上交应用的最终版本就够了。你也可以每完成一道练习就在git中提交一次,但并不强制。</i>
13851385

13861386
<!-- In some situations you may also have to run the command below from the root of the project:-->
13871387
在某些情况下,你可能还得从项目的根目录运行以下命令:
@@ -1396,7 +1396,7 @@ rm -rf node_modules/ && npm i
13961396
> <i>Objects are not valid as a React child</i>
13971397
13981398
<!-- keep in mind the things told [here](/en/part1/introduction_to_react#do-not-render-objects). -->
1399-
记住[这里](/zh/part1/introduction_to_react#do-not-render-objects)讲过的内容。
1399+
记住[这里](/zh/part1/react简介#不要渲染对象)讲过的内容。
14001400

14011401
<!-- <h4> 1.6: unicafe step 1</h4> -->
14021402
<h4> 1.6:unicafe 第1步</h4>
@@ -1642,6 +1642,6 @@ copy[2] += 1
16421642
如果多个名言警句并列第一,只显示其中一个就足够了。
16431643

16441644
<!-- This was the last exercise for this part of the course and it's time to push your code to GitHub and mark all of your finished exercises to the "my submissions" tab of the [submission application](https://studies.cs.helsinki.fi/stats/courses/fullstackopen). -->
1645-
这是本章节课程的最后一个练习,是时候将你的代码推送到GitHub,然后在[上交应用](https://studies.cs.helsinki.fi/stats/courses/fullstackopen)的“我的上交”标签页中标记所有完成的练习了。
1645+
这是本章节课程的最后一道练习,是时候将你的代码推送到GitHub,然后在[上交应用](https://studies.cs.helsinki.fi/stats/courses/fullstackopen)的“my submissions”标签页中标记所有完成的练习了。
16461646

16471647
</div>

src/content/2/zh/part2.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,11 @@ lang: zh
77
<div class="intro">
88

99
<!-- Let's continue our introduction to React. First, we will take a look at how to render a data collection, like a list of names, to the screen. After this, we will inspect how a user can submit data to a React application using HTML forms. Next, our focus shifts towards looking at how JavaScript code in the browser can fetch and handle data stored in a remote backend server. Lastly, we will take a quick look at a few simple ways of adding CSS styles to our React applications.-->
10-
让我们继续介绍React。首先,我们将看看如何在屏幕上渲染一个数据集合,比如一个名字的列表。在这之后,我们将探究用户如何使用HTML表单向React应用提交数据。接下来,我们的重点将转移到查看浏览器中的JavaScript代码,看其如何获取和处理存储在远程后端服务器中的数据。最后,我们将快速浏览一下向React应用添加CSS样式的几个简单方法。
10+
让我们继续介绍React。首先,我们将看看如何在屏幕上渲染一个数据集合,比如一个名字的列表。在这之后,我们将探究用户如何使用HTML表单向React应用提交数据。接下来,我们的重点将转移到查看浏览器中的JavaScript代码,看其如何获取和处理存储在远程后端服务器中的数据。最后,我们将快速浏览一下向React应用添加CSS样式的几种简单方法。
11+
12+
<!-- <i>Part updated on 16th February 2025</i> -->
13+
<i>原文更新于2025年2月16日</i>
14+
<!-- - <i>Node updated to version v22.3.0</i> -->
15+
- <i>Node更新至版本22.3.0</i>
16+
1117
</div>

0 commit comments

Comments
 (0)