Skip to content

Commit 46b2043

Browse files
authored
doc(cn): translate some previously English sections (#1650)
2 parents 8736053 + fd6d16c commit 46b2043

8 files changed

Lines changed: 89 additions & 89 deletions

src/content/learn/adding-interactivity.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -138,75 +138,75 @@ export default function Gallery() {
138138
export const sculptureList = [{
139139
name: 'Homenaje a la Neurocirugía',
140140
artist: 'Marta Colvin Andrade',
141-
description: 'Although Colvin is predominantly known for abstract themes that allude to pre-Hispanic symbols, this gigantic sculpture, an homage to neurosurgery, is one of her most recognizable public art pieces.',
141+
description: '尽管 Colvin 以暗示前西班牙符号的抽象主题而闻名,但这座巨大的雕塑是对神经外科的致敬,是她最知名的公共艺术作品之一。',
142142
url: 'https://i.imgur.com/Mx7dA2Y.jpg',
143-
alt: 'A bronze statue of two crossed hands delicately holding a human brain in their fingertips.'
143+
alt: '一尊双手交叉的青铜雕像,它的手指优雅地握住一个人类的大脑。'
144144
}, {
145145
name: 'Floralis Genérica',
146146
artist: 'Eduardo Catalano',
147-
description: 'This enormous (75 ft. or 23m) silver flower is located in Buenos Aires. It is designed to move, closing its petals in the evening or when strong winds blow and opening them in the morning.',
147+
description: '这朵巨大的银花(75 英尺或 23 米)位于布宜诺斯艾利斯。它并非静止的艺术,它能在晚上或强风吹拂时关闭花瓣,在早晨打开它们。',
148148
url: 'https://i.imgur.com/ZF6s192m.jpg',
149-
alt: 'A gigantic metallic flower sculpture with reflective mirror-like petals and strong stamens.'
149+
alt: '一个巨大的金属花卉雕塑,具有棱镜状的花瓣和坚固的雄蕊。'
150150
}, {
151151
name: 'Eternal Presence',
152152
artist: 'John Woodrow Wilson',
153-
description: 'Wilson was known for his preoccupation with equality, social justice, as well as the essential and spiritual qualities of humankind. This massive (7ft. or 2,13m) bronze represents what he described as "a symbolic Black presence infused with a sense of universal humanity."',
153+
description: '威尔逊以专注于平等、社会正义以及人类的基本和精神品质而闻名。这个巨大的(7 英尺或 2.13 米)青铜代表了他所描述的“一种象征性的黑人存在,注入了“普遍的人性意识”。',
154154
url: 'https://i.imgur.com/aTtVpES.jpg',
155-
alt: 'The sculpture depicting a human head seems ever-present and solemn. It radiates calm and serenity.'
155+
alt: '描绘人的头部的雕塑似乎从古至今都是庄严肃穆的。它们散发着平静和宁静。'
156156
}, {
157157
name: 'Moai',
158158
artist: 'Unknown Artist',
159-
description: 'Located on the Easter Island, there are 1,000 moai, or extant monumental statues, created by the early Rapa Nui people, which some believe represented deified ancestors.',
159+
description: '在复活节岛上,有 1000 个石像,或现存的纪念碑雕像,由早期的拉帕努伊人创造,一些人认为代表神化的祖先。',
160160
url: 'https://i.imgur.com/RCwLEoQm.jpg',
161161
alt: 'Three monumental stone busts with the heads that are disproportionately large with somber faces.'
162162
}, {
163163
name: 'Blue Nana',
164164
artist: 'Niki de Saint Phalle',
165-
description: 'The Nanas are triumphant creatures, symbols of femininity and maternity. Initially, Saint Phalle used fabric and found objects for the Nanas, and later on introduced polyester to achieve a more vibrant effect.',
165+
description: 'Nana 是一群自信奔放的人,也是女性气质和母性的象征。最初,Saint Phalle 使用布料和废弃物品来创作 Nana,后来又引入合成树脂以实现更具活力的效果。',
166166
url: 'https://i.imgur.com/Sd1AgUOm.jpg',
167-
alt: 'A large mosaic sculpture of a whimsical dancing female figure in a colorful costume emanating joy.'
167+
alt: '这是一件大型马赛克雕塑,展现了一个穿着绚丽服装、欢快舞蹈的女性形象,充满了喜悦和活力。'
168168
}, {
169169
name: 'Ultimate Form',
170170
artist: 'Barbara Hepworth',
171-
description: 'This abstract bronze sculpture is a part of The Family of Man series located at Yorkshire Sculpture Park. Hepworth chose not to create literal representations of the world but developed abstract forms inspired by people and landscapes.',
171+
description: '这座抽象的青铜雕塑是位于约克郡雕塑公园的《人类家族》系列的一部分。Hepworth 选择的不是创造世界的文字表现,而是受到人和景观的启发而发展出抽象的形式。',
172172
url: 'https://i.imgur.com/2heNQDcm.jpg',
173173
alt: 'A tall sculpture made of three elements stacked on each other reminding of a human figure.'
174174
}, {
175175
name: 'Cavaliere',
176176
artist: 'Lamidi Olonade Fakeye',
177-
description: "Descended from four generations of woodcarvers, Fakeye's work blended traditional and contemporary Yoruba themes.",
177+
description: "法基是四代木雕家的后代,他的作品融合了传统和当代约鲁巴主题。",
178178
url: 'https://i.imgur.com/wIdGuZwm.png',
179-
alt: 'An intricate wood sculpture of a warrior with a focused face on a horse adorned with patterns.'
179+
alt: '一个复杂的木制战士雕塑,马背上有一张严肃的脸,脸上装饰着图案。'
180180
}, {
181181
name: 'Big Bellies',
182182
artist: 'Alina Szapocznikow',
183-
description: "Szapocznikow is known for her sculptures of the fragmented body as a metaphor for the fragility and impermanence of youth and beauty. This sculpture depicts two very realistic large bellies stacked on top of each other, each around five feet (1,5m) tall.",
183+
description: "Szapocznikow 以她的肢体破损的雕塑而闻名,这些雕塑隐喻了年轻和美丽的脆弱和短暂。这座雕塑描绘了两个非常逼真的大肚皮,彼此叠放在一起,每个大约5英尺(1.5米)高。",
184184
url: 'https://i.imgur.com/AlHTAdDm.jpg',
185-
alt: 'The sculpture reminds a cascade of folds, quite different from bellies in classical sculptures.'
185+
alt: '这座雕塑让人联想到层叠的褶皱,与古典雕塑中的腹部截然不同。'
186186
}, {
187187
name: 'Terracotta Army',
188188
artist: 'Unknown Artist',
189-
description: 'The Terracotta Army is a collection of terracotta sculptures depicting the armies of Qin Shi Huang, the first Emperor of China. The army consisted of more than 8,000 soldiers, 130 chariots with 520 horses, and 150 cavalry horses.',
189+
description: '兵马俑是一组陶俑雕塑,描绘了中国第一个皇帝秦始皇的军队。军队由8000多名士兵、130辆战车、520匹马和150匹骑兵组成。',
190190
url: 'https://i.imgur.com/HMFmH6m.jpg',
191-
alt: '12 terracotta sculptures of solemn warriors, each with a unique facial expression and armor.'
191+
alt: '12 个庄严的武士兵马俑,每个都有独特的面部表情和盔甲。'
192192
}, {
193193
name: 'Lunar Landscape',
194194
artist: 'Louise Nevelson',
195-
description: 'Nevelson was known for scavenging objects from New York City debris, which she would later assemble into monumental constructions. In this one, she used disparate parts like a bedpost, juggling pin, and seat fragment, nailing and gluing them into boxes that reflect the influence of Cubism’s geometric abstraction of space and form.',
195+
description: 'Nevelson 以从纽约市的废墟中捡拾物体而闻名,后来她将这些碎片组装成纪念性建筑。在这幅画中,她使用了不同的部分,如床柱、杂耍的大头针和座椅碎片,将它们钉在盒子里并粘在一起,反映了立体主义对空间和形式的几何抽象的影响。',
196196
url: 'https://i.imgur.com/rN7hY6om.jpg',
197-
alt: 'A black matte sculpture where the individual elements are initially indistinguishable.'
197+
alt: '一种黑色哑光雕塑,其中单个元素最初无法区分。'
198198
}, {
199199
name: 'Aureole',
200200
artist: 'Ranjani Shettar',
201-
description: 'Shettar merges the traditional and the modern, the natural and the industrial. Her art focuses on the relationship between man and nature. Her work was described as compelling both abstractly and figuratively, gravity defying, and a "fine synthesis of unlikely materials."',
201+
description: 'Shettar 融合了传统与现代、自然与工业。她的艺术关注人与自然的关系。她的工作被描述为在抽象和比喻上都引人注目,挑战重力,以及“不太可能的材料的精细合成”。"',
202202
url: 'https://i.imgur.com/okTpbHhm.jpg',
203-
alt: 'A pale wire-like sculpture mounted on concrete wall and descending on the floor. It appears light.'
203+
alt: '一个苍白的线状雕塑安装在混凝土墙上,并下降到地板上。它看起来很轻。'
204204
}, {
205205
name: 'Hippos',
206-
artist: 'Taipei Zoo',
207-
description: 'The Taipei Zoo commissioned a Hippo Square featuring submerged hippos at play.',
206+
artist: '台北动物园',
207+
description: '台北动物园委托建造了河马广场,以水下河马为特色。',
208208
url: 'https://i.imgur.com/6o5Vuyu.jpg',
209-
alt: 'A group of bronze hippo sculptures emerging from the sett sidewalk as if they were swimming.'
209+
alt: '一组青铜河马雕塑从露台的人行道上出现,好像他们在游泳。'
210210
}];
211211
```
212212

src/content/learn/describing-the-ui.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ h2 { font-size: 20px; }
481481
let guest = 0;
482482

483483
function Cup() {
484-
// Bad: changing a preexisting variable!
484+
// 不推荐的做法:直接修改一个已存在的变量。
485485
guest = guest + 1;
486486
return <h2>Tea cup for guest #{guest}</h2>;
487487
}

src/content/learn/extracting-state-logic-into-a-reducer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1201,7 +1201,7 @@ export default function ContactList({contacts, selectedId, dispatch}) {
12011201
<li key={contact.id}>
12021202
<button
12031203
onClick={() => {
1204-
// TODO: dispatch changed_selection
1204+
// TODO: 派发 changed_selection
12051205
}}>
12061206
{selectedId === contact.id ? <b>{contact.name}</b> : contact.name}
12071207
</button>

src/content/learn/index.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ React 组件是返回标签的 JavaScript 函数:
3434
```js
3535
function MyButton() {
3636
return (
37-
<button>I'm a button</button>
37+
<button>我是一个按钮</button>
3838
);
3939
}
4040
```
@@ -45,7 +45,7 @@ function MyButton() {
4545
export default function MyApp() {
4646
return (
4747
<div>
48-
<h1>Welcome to my app</h1>
48+
<h1>欢迎来到我的应用</h1>
4949
<MyButton />
5050
</div>
5151
);
@@ -62,15 +62,15 @@ export default function MyApp() {
6262
function MyButton() {
6363
return (
6464
<button>
65-
I'm a button
65+
我是一个按钮
6666
</button>
6767
);
6868
}
6969

7070
export default function MyApp() {
7171
return (
7272
<div>
73-
<h1>Welcome to my app</h1>
73+
<h1>欢迎来到我的应用</h1>
7474
<MyButton />
7575
</div>
7676
);
@@ -91,8 +91,8 @@ JSX 比 HTML 更加严格。你必须闭合标签,如 `<br />`。你的组件
9191
function AboutPage() {
9292
return (
9393
<>
94-
<h1>About</h1>
95-
<p>Hello there.<br />How do you do?</p>
94+
<h1>关于</h1>
95+
<p>你好。<br />最近怎么样?</p>
9696
</>
9797
);
9898
}
@@ -111,7 +111,7 @@ function AboutPage() {
111111
然后,你可以在一个单独的 CSS 文件中为它编写 CSS 规则:
112112

113113
```css
114-
/* In your CSS */
114+
/* 在你的 CSS 文件中修改 */
115115
.avatar {
116116
border-radius: 50%;
117117
}
@@ -259,9 +259,9 @@ return (
259259

260260
```js
261261
const products = [
262-
{ title: 'Cabbage', isFruit: false, id: 1 },
263-
{ title: 'Garlic', isFruit: false, id: 2 },
264-
{ title: 'Apple', isFruit: true, id: 3 },
262+
{ title: '卷心菜', isFruit: false, id: 1 },
263+
{ title: '大蒜', isFruit: false, id: 2 },
264+
{ title: '苹果', isFruit: true, id: 3 },
265265
];
266266

267267
export default function ShoppingList() {
@@ -296,7 +296,7 @@ function MyButton() {
296296

297297
return (
298298
<button onClick={handleClick}>
299-
Click me
299+
点我
300300
</button>
301301
);
302302
}
@@ -354,7 +354,7 @@ import { useState } from 'react';
354354
export default function MyApp() {
355355
return (
356356
<div>
357-
<h1>Counters that update separately</h1>
357+
<h1>独立更新的计数器</h1>
358358
<MyButton />
359359
<MyButton />
360360
</div>
@@ -370,7 +370,7 @@ function MyButton() {
370370

371371
return (
372372
<button onClick={handleClick}>
373-
Clicked {count} times
373+
点了 {count}
374374
</button>
375375
);
376376
}
@@ -449,15 +449,15 @@ export default function MyApp() {
449449

450450
return (
451451
<div>
452-
<h1>Counters that update separately</h1>
452+
<h1>独立更新的计数器</h1>
453453
<MyButton />
454454
<MyButton />
455455
</div>
456456
);
457457
}
458458

459459
function MyButton() {
460-
// ... we're moving code from here ...
460+
// ... 我们将把代码移动到这里 ...
461461
}
462462

463463
```
@@ -474,7 +474,7 @@ export default function MyApp() {
474474

475475
return (
476476
<div>
477-
<h1>Counters that update together</h1>
477+
<h1>共同更新的计数器</h1>
478478
<MyButton count={count} onClick={handleClick} />
479479
<MyButton count={count} onClick={handleClick} />
480480
</div>
@@ -490,7 +490,7 @@ export default function MyApp() {
490490
function MyButton({ count, onClick }) {
491491
return (
492492
<button onClick={onClick}>
493-
Clicked {count} times
493+
点了 {count}
494494
</button>
495495
);
496496
}
@@ -512,7 +512,7 @@ export default function MyApp() {
512512

513513
return (
514514
<div>
515-
<h1>Counters that update together</h1>
515+
<h1>共同更新的计数器</h1>
516516
<MyButton count={count} onClick={handleClick} />
517517
<MyButton count={count} onClick={handleClick} />
518518
</div>
@@ -522,7 +522,7 @@ export default function MyApp() {
522522
function MyButton({ count, onClick }) {
523523
return (
524524
<button onClick={onClick}>
525-
Clicked {count} times
525+
点了 {count}
526526
</button>
527527
);
528528
}

0 commit comments

Comments
 (0)