Skip to content

Translate: Components in src/components #209

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion content/blog/2018-10-23-react-v-16-6.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ Refer to the documentation for [detailed installation instructions](/docs/instal
## Changelog {#changelog}

### React {#react}

* Add `React.memo()` as an alternative to `PureComponent` for functions. ([@acdlite](https://github.com/acdlite) in [#13748](https://github.com/facebook/react/pull/13748))
* Add `React.lazy()` for code splitting components. ([@acdlite](https://github.com/acdlite) in [#13885](https://github.com/facebook/react/pull/13885))
* `React.StrictMode` now warns about legacy context API. ([@bvaughn](https://github.com/bvaughn) in [#13760](https://github.com/facebook/react/pull/13760))
Expand Down
2 changes: 1 addition & 1 deletion content/docs/faq-functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ class Searchbox extends React.Component {
<input
type="text"
onChange={this.handleChange}
placeholder="Search..."
placeholder="Tìm kiếm..."
defaultValue={this.props.value}
/>
);
Expand Down
8 changes: 4 additions & 4 deletions src/components/CodeEditor/CodeEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,12 @@ class CodeEditor extends Component {
if (showBabelErrorMessage) {
errorMessage = (
<span>
Babel could not be loaded.
Không thể tải được Babel.
<br />
<br />
This can be caused by an ad blocker. If you're using one, consider
adding reactjs.org to the whitelist so the live code examples will
work.
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,
cân nhắc thêm reactjs.org vào danh sách cho phép để trình live code
này có thể chạy được.
</span>
);
} else if (error != null) {
Expand Down
2 changes: 1 addition & 1 deletion src/components/CodeExample/CodeExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class CodeExample extends Component<Props> {
{loaded ? (
<CodeEditor code={code} containerNodeID={containerNodeID} />
) : (
<h4>Loading code example...</h4>
<h4>Đang tải code mẫu...</h4>
)}
</div>
);
Expand Down
4 changes: 2 additions & 2 deletions src/components/ErrorDecoder/ErrorDecoder.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ function ErrorResult(props: {|code: ?string, msg: string|}) {
if (!code) {
return (
<p>
When you encounter an error, you'll receive a link to this page for that
specific error and we'll show you the full error text.
Khi bạn gặp lỗi, bạn sẽ nhận được một link đến trang này để hiện thị
cho bạn toàn bộ nội dung lỗi.
</p>
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/LayoutHeader/DocSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class DocSearch extends Component<{}, State> {
inputSelector: '#algolia-doc-search',
});
} else {
console.warn('Search has failed to load and now is being disabled');
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ó.');
this.setState({enabled: false});
}
}
Expand Down