Skip to content

Commit dd30748

Browse files
authored
Merge pull request #227 from fozg/home-page
Translate Home page example
2 parents 65f61c7 + f58a5ca commit dd30748

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@ class MarkdownEditor extends React.Component {
1717
render() {
1818
return (
1919
<div className="MarkdownEditor">
20-
<h3>Input</h3>
20+
<h3>Đầu vào</h3>
2121
<label htmlFor="markdown-content">
22-
Enter some markdown
22+
Nhập dưới dạng 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>Kết Quả</h3>
3030
<div
3131
className="content"
3232
dangerouslySetInnerHTML={this.getRawMarkup()}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ class HelloMessage extends React.Component {
22
render() {
33
return (
44
<div>
5-
Hello {this.props.name}
5+
Xin chào {this.props.name}
66
</div>
77
);
88
}

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

Lines changed: 2 additions & 2 deletions
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+
Giây: {this.state.seconds}
2525
</div>
2626
);
2727
}
@@ -30,4 +30,4 @@ class Timer extends React.Component {
3030
ReactDOM.render(
3131
<Timer />,
3232
document.getElementById('timer-example')
33-
);
33+
);

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>Danh sách công việc</h3>
1313
<TodoList items={this.state.items} />
1414
<form onSubmit={this.handleSubmit}>
1515
<label htmlFor="new-todo">
16-
What needs to be done?
16+
Bạn cần làm gì?
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+
Thêm #{this.state.items.length + 1}
2525
</button>
2626
</form>
2727
</div>

src/components/CodeEditor/CodeEditor.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ class CodeEditor extends Component {
105105
color: colors.white,
106106
}}>
107107
<MetaTitle onDark={true}>
108-
Live JSX Editor
108+
Trình Chỉnh Sửa JSX
109109
<label
110110
css={{
111111
fontSize: 14,
@@ -206,7 +206,7 @@ class CodeEditor extends Component {
206206
padding: '0 10px',
207207
backgroundColor: colors.divider,
208208
}}>
209-
<MetaTitle>Result</MetaTitle>
209+
<MetaTitle>Kết quả</MetaTitle>
210210
</div>
211211
<div
212212
id={containerNodeID}

0 commit comments

Comments
 (0)