Skip to content

Commit 1089361

Browse files
CoderSerioCoderSerio
CoderSerio
authored and
CoderSerio
committed
Merge branch 'docs-translation' of github.com:CoderSerio/zh-hans.react.dev into docs-translation
2 parents 141bb46 + 7fd7872 commit 1089361

File tree

6 files changed

+169
-168
lines changed

6 files changed

+169
-168
lines changed

src/components/Tag.tsx

+5-5
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,23 @@ import type {RouteTag} from './Layout/getRouteMeta';
77

88
const variantMap = {
99
foundation: {
10-
name: 'Foundation',
10+
name: '基础',
1111
classes: 'bg-yellow-50 text-white',
1212
},
1313
intermediate: {
14-
name: 'Intermediate',
14+
name: '中级',
1515
classes: 'bg-purple-40 text-white',
1616
},
1717
advanced: {
18-
name: 'Advanced',
18+
name: '高级',
1919
classes: 'bg-green-40 text-white',
2020
},
2121
experimental: {
22-
name: 'Experimental',
22+
name: '实验性的',
2323
classes: 'bg-ui-orange text-white',
2424
},
2525
deprecated: {
26-
name: 'Deprecated',
26+
name: '弃用',
2727
classes: 'bg-red-40 text-white',
2828
},
2929
};

src/content/learn/index.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ translators:
55
- sooia
66
- KnowsCount
77
- QC-L
8+
- Zhou Chenyang
89
---
910

1011
<Intro>
@@ -540,4 +541,4 @@ button {
540541
541542
至此,你已经了解了如何编写 React 代码的基本知识。
542543
543-
Check out the [Tutorial](/learn/tutorial-tic-tac-toe) to put them into practice and build your first mini-app with React.
544+
看看 [教程](/learn/tutorial-tic-tac-toe),把它们付诸实践,用 React 建立你的第一个迷你应用程序。

src/content/reference/react-dom/components/textarea.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ title: "<textarea>"
4242

4343
* `defaultValue`:一个字符串,表示文本框的 [初始值](#providing-an-initial-value-for-a-text-area)
4444

45-
以下 `<select>` 属性均可用于受控与非受控组件:
45+
以下 `<textarea>` 属性均可用于受控与非受控组件:
4646

4747
* [`autoComplete`](https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/textarea#attr-autocomplete):可以为 `'on'``'off'`,表示自动完成的行为。
4848
* [`autoFocus`](https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/textarea#attr-autofocus):布尔值。如果为 `true`,React 将在挂载时聚焦该元素。

src/content/reference/react/Children.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ function RowList({ children }) {
214214
}
215215
```
216216
217-
在上述例子中,`RowList` `<div className="Row">` 包裹了接收到的每一个子元素。举个例子,假设父组件将三个 `<p>` 作为 `children` 属性传递给 `RowList`
217+
在上述例子中,`RowList``<div className="Row">` 包裹了接收到的每一个子元素。举个例子,假设父组件将三个 `<p>` 作为 `children` 属性传递给 `RowList`
218218
219219
```js
220220
<RowList>
@@ -534,7 +534,7 @@ export default function ReversedList({ children }) {
534534
535535
<Note>
536536
537-
像下面这样导入的就是(大写字母 `C` 开头的) `Children` API,本章节将会介绍它的一些替代方案:
537+
像下面这样导入的就是(大写字母 `C` 开头的)`Children` API,本章节将会介绍它的一些替代方案:
538538
539539
```js
540540
import { Children } from 'react';

0 commit comments

Comments
 (0)