Skip to content

Commit c06f04d

Browse files
committed
Translate sample source code texts
1 parent 3ae95d6 commit c06f04d

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

content/home/examples/a-component-using-external-plugins.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ class MarkdownEditor extends React.Component {
22
constructor(props) {
33
super(props);
44
this.handleChange = this.handleChange.bind(this);
5-
this.state = { value: 'Hello, **world**!' };
5+
this.state = { value: 'Привет, **мир**!' };
66
}
77

88
handleChange(e) {
@@ -17,16 +17,16 @@ class MarkdownEditor extends React.Component {
1717
render() {
1818
return (
1919
<div className="MarkdownEditor">
20-
<h3>Input</h3>
20+
<h3>Входные данные</h3>
2121
<label htmlFor="markdown-content">
22-
Enter some markdown
22+
Введите что-нибудь в формате Markdown
2323
</label>
2424
<textarea
2525
id="markdown-content"
2626
onChange={this.handleChange}
2727
defaultValue={this.state.value}
2828
/>
29-
<h3>Output</h3>
29+
<h3>Вывод</h3>
3030
<div
3131
className="content"
3232
dangerouslySetInnerHTML={this.getRawMarkup()}

content/home/examples/a-simple-component.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ class HelloMessage extends React.Component {
22
render() {
33
return (
44
<div>
5-
Hello {this.props.name}
5+
Привет, {this.props.name}
66
</div>
77
);
88
}
99
}
1010

1111
ReactDOM.render(
12-
<HelloMessage name="Taylor" />,
12+
<HelloMessage name="Иван" />,
1313
document.getElementById('hello-example')
1414
);

content/home/examples/a-stateful-component.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class Timer extends React.Component {
2121
render() {
2222
return (
2323
<div>
24-
Seconds: {this.state.seconds}
24+
Секунды: {this.state.seconds}
2525
</div>
2626
);
2727
}

content/home/examples/an-application.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@ class TodoApp extends React.Component {
99
render() {
1010
return (
1111
<div>
12-
<h3>TODO</h3>
12+
<h3>Список дел</h3>
1313
<TodoList items={this.state.items} />
1414
<form onSubmit={this.handleSubmit}>
1515
<label htmlFor="new-todo">
16-
What needs to be done?
16+
Что нужно сделать?
1717
</label>
1818
<input
1919
id="new-todo"
2020
onChange={this.handleChange}
2121
value={this.state.text}
2222
/>
2323
<button>
24-
Add #{this.state.items.length + 1}
24+
Добавить #{this.state.items.length + 1}
2525
</button>
2626
</form>
2727
</div>

0 commit comments

Comments
 (0)