Skip to content

Commit 9e615fa

Browse files
authored
Merge pull request #75 from reactjs/alioguzhan/refactor-examples
translate strings in example apps
2 parents e4c5a0b + 5714992 commit 9e615fa

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

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

+3-3
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>Girdi</h3>
2121
<label htmlFor="markdown-content">
22-
Enter some markdown
22+
Biraz markdown yazın
2323
</label>
2424
<textarea
2525
id="markdown-content"
2626
onChange={this.handleChange}
2727
defaultValue={this.state.value}
2828
/>
29-
<h3>Output</h3>
29+
<h3>Sonuç</h3>
3030
<div
3131
className="content"
3232
dangerouslySetInnerHTML={this.getRawMarkup()}

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

+2-2
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+
Merhaba {this.props.name}
66
</div>
77
);
88
}
99
}
1010

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

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

+1-1
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+
Saniye: {this.state.seconds}
2525
</div>
2626
);
2727
}

content/home/examples/an-application.js

+3-3
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>YAPILACAKLAR</h3>
1313
<TodoList items={this.state.items} />
1414
<form onSubmit={this.handleSubmit}>
1515
<label htmlFor="new-todo">
16-
What needs to be done?
16+
Ne yapılması gerekiyor?
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+
Ekle #{this.state.items.length + 1}
2525
</button>
2626
</form>
2727
</div>

content/home/examples/an-application.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ order: 2
44
domid: todos-example
55
---
66

7-
`props` ve `state` kullanarak, küçük bir Todo uygulaması oluşturabiliriz. Bu örnekte `state`, hem öğelerin bulunduğu güncel listeyi hem de kullanıcının girmiş olduğu metni takip etmek için kullanılıyor. Olay yöneticileri, satıriçi oluşturuluyor gibi gözükmelerine rağmen, olay delagasyonu ile toplanıp gerçekleştirilir.
7+
`props` ve `state` kullanarak, küçük bir Yapılacaklar (Todo) uygulaması oluşturabiliriz. Bu örnekte `state`, hem öğelerin bulunduğu güncel listeyi hem de kullanıcının girmiş olduğu metni takip etmek için kullanılıyor. Olay yöneticileri, satıriçi oluşturuluyor gibi gözükmelerine rağmen, olay delagasyonu ile toplanıp gerçekleştirilir.

0 commit comments

Comments
 (0)