Skip to content

Commit e124fb4

Browse files
authored
Merge pull request #209 from fozg/components-translate
Translate: Components in src/components
2 parents ada3dd8 + c2aa79f commit e124fb4

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

content/blog/2018-10-23-react-v-16-6.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ Refer to the documentation for [detailed installation instructions](/docs/instal
119119
## Changelog {#changelog}
120120

121121
### React {#react}
122-
122+
123123
* Add `React.memo()` as an alternative to `PureComponent` for functions. ([@acdlite](https://github.com/acdlite) in [#13748](https://github.com/facebook/react/pull/13748))
124124
* Add `React.lazy()` for code splitting components. ([@acdlite](https://github.com/acdlite) in [#13885](https://github.com/facebook/react/pull/13885))
125125
* `React.StrictMode` now warns about legacy context API. ([@bvaughn](https://github.com/bvaughn) in [#13760](https://github.com/facebook/react/pull/13760))

content/docs/faq-functions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ class Searchbox extends React.Component {
282282
<input
283283
type="text"
284284
onChange={this.handleChange}
285-
placeholder="Search..."
285+
placeholder="Tìm kiếm..."
286286
defaultValue={this.props.value}
287287
/>
288288
);

src/components/CodeEditor/CodeEditor.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,12 @@ class CodeEditor extends Component {
6262
if (showBabelErrorMessage) {
6363
errorMessage = (
6464
<span>
65-
Babel could not be loaded.
65+
Không thể tải được Babel.
6666
<br />
6767
<br />
68-
This can be caused by an ad blocker. If you're using one, consider
69-
adding reactjs.org to the whitelist so the live code examples will
70-
work.
68+
Lỗi này có thể do phần mềm chặn quảng cáo. Nếu bạn sử dụng chúng,
69+
cân nhắc thêm reactjs.org vào danh sách cho phép để trình live code
70+
này có thể chạy được.
7171
</span>
7272
);
7373
} else if (error != null) {

src/components/CodeExample/CodeExample.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class CodeExample extends Component<Props> {
7474
{loaded ? (
7575
<CodeEditor code={code} containerNodeID={containerNodeID} />
7676
) : (
77-
<h4>Loading code example...</h4>
77+
<h4>Đang tải code mẫu...</h4>
7878
)}
7979
</div>
8080
);

src/components/ErrorDecoder/ErrorDecoder.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ function ErrorResult(props: {|code: ?string, msg: string|}) {
6969
if (!code) {
7070
return (
7171
<p>
72-
When you encounter an error, you'll receive a link to this page for that
73-
specific error and we'll show you the full error text.
72+
Khi bạn gặp lỗi, bạn sẽ nhận được một link đến trang này để hiện thị
73+
cho bạn toàn bộ nội dung lỗi.
7474
</p>
7575
);
7676
}

src/components/LayoutHeader/DocSearch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class DocSearch extends Component<{}, State> {
2727
inputSelector: '#algolia-doc-search',
2828
});
2929
} else {
30-
console.warn('Search has failed to load and now is being disabled');
30+
console.warn('Không tải được Trình tìm kiếm lúc này nên tạm thời sẽ tắt nó.');
3131
this.setState({enabled: false});
3232
}
3333
}

0 commit comments

Comments
 (0)