Skip to content
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

translate invalid-hook-call-warning and invalid-aira-prop #200

Merged
merged 8 commits into from Sep 16, 2021

Conversation

dinhtrung1308
Copy link
Contributor

No description provided.

@netlify
Copy link

netlify bot commented Sep 15, 2021

✔️ Deploy Preview for vi-reactjs-org ready!

🔨 Explore the source changes: 0533b4a

🔍 Inspect the deploy log: https://app.netlify.com/sites/vi-reactjs-org/deploys/6142d2c8f519930007674f5f

😎 Browse the preview: https://deploy-preview-200--vi-reactjs-org.netlify.app

@dinhtrung1308
Copy link
Contributor Author

Anh review dùm em nhé. Cảm ơn anh !!!

@Ryan-LT
Copy link
Member

Ryan-LT commented Sep 15, 2021

Anh review dùm em nhé. Cảm ơn anh !!!

Sure em! Sáng mai nhé 😄

@@ -4,8 +4,8 @@ layout: single
permalink: warnings/invalid-aria-prop.html
---

The invalid-aria-prop warning will fire if you attempt to render a DOM element with an aria-* prop that does not exist in the Web Accessibility Initiative (WAI) Accessible Rich Internet Application (ARIA) [specification](https://www.w3.org/TR/wai-aria-1.1/#states_and_properties).
The invalid-aria-prop warning sẽ xuất hiện nếu bạn cố gắng xuất một DOM element với một aria-* prop cái mà không tồn tại trong Web Accessibility Initiative (WAI) Accessible Rich Internet Application (ARIA) [specification](https://www.w3.org/TR/wai-aria-1.1/#states_and_properties).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cố gắng xuất
-> Giữ nguyên từ render nhé e

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cái mà không tồn tại
-> Chỗ này hơi lấn cấn nè

Copy link
Member

@Ryan-LT Ryan-LT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Em check lại giúp anh nhé. Cảm ơn em

@@ -4,8 +4,8 @@ layout: single
permalink: warnings/invalid-aria-prop.html
---

The invalid-aria-prop warning will fire if you attempt to render a DOM element with an aria-* prop that does not exist in the Web Accessibility Initiative (WAI) Accessible Rich Internet Application (ARIA) [specification](https://www.w3.org/TR/wai-aria-1.1/#states_and_properties).
The invalid-aria-prop warning sẽ xuất hiện nếu bạn cố gắng xuất một DOM element với một aria-* prop cái mà không tồn tại trong Web Accessibility Initiative (WAI) Accessible Rich Internet Application (ARIA) [specification](https://www.w3.org/TR/wai-aria-1.1/#states_and_properties).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cái mà không tồn tại
-> Chỗ này hơi lấn cấn nè


1. If you feel that you are using a valid prop, check the spelling carefully. `aria-labelledby` and `aria-activedescendant` are often misspelled.
1. Nếu bạn thấy bạn đang sử dụng đúng prop, kiểm tra chính tả một cách kỹ càng. `aria-labelledby` `aria-activedescendant` thường được đánh vần sai.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Em rephrase lại đoạn này nhé!

2. React không nhận ra thuộc tính bạn mô tả. Vấn đề này có vẻ sẽ được sửa trong phiên bản tương lai của React. Tuy nhiên, React hiện tại loại bỏ tất cả thuộc tính không nhận diện được, vì thế mô tả chúng trong ứng dụng React của bạn sẽ khiến chúng không được xuất ra.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

xuất ra.
-> Giữ nguyên từ render nhé em

@@ -4,30 +4,29 @@ layout: single
permalink: warnings/invalid-hook-call-warning.html
---

You are probably here because you got the following error message:
Bạn có thể ở đây bởi vì bạn nhận được nhũng thông báo lỗi dưới đây:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bạn có thể ở đây bởi vì bạn nhận được nhũng thông báo lỗi dưới đây:
-> Bạn có thể ở đây bởi vì bạn gặp những thông báo lỗi dưới đây:
Spelling nha em


## Mismatching Versions of React and React DOM {#mismatching-versions-of-react-and-react-dom}
Bạn có thể đang sử dụng phiên bản `react-dom` (< 16.8.0) hoặc `react-native` (< 0.59) những cái này chưa hỗ trợ Hooks. Bạn có thể chạy `npm ls react-dom` hoặc `npm ls react-native` trong thư mục ứng dụng của bạn để kiểm tra bạn đang sử dụng phiên bản nào. Nếu bạn thấy nhiều hơn một phiên bản, điều này sẽ gây ra những vấn đề (nhiều hơn ở dưới).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

những cái này
->những phiên bản này

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nhiều hơn ở dưới
-> Liệt kê bên dưới


If you break these rules, you might see this error.
Nếu bạn vi phạm những quy tắc này, bạn có thể thấy lỗi này.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nếu bạn vi phạm những quy tắc này
-> Nếu bạn vi phạm những quy tắc trên

>
>[Custom Hooks](/docs/hooks-custom.html) *may* call other Hooks (that's their whole purpose). This works because custom Hooks are also supposed to only be called while a function component is rendering.
>[Custom Hooks](/docs/hooks-custom.html) *có thể* gọi những Hooks khác (hoàn toàn do mục đích của nó). Điều này hoàn toàn hữu hiệu bởi vì custom Hooks được hỗ trợ chỉ để được gọi khi một function component đang xuất.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

đang xuất
-> Đang render


In order for Hooks to work, the `react` import from your application code needs to resolve to the same module as the `react` import from inside the `react-dom` package.
Để cho Hooks hoạt động, `react` được thêm từ mã ứng dụng cần được giải quyết giống như `react` được thêm từ gói `react-dom`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cho Hooks hoạt động,
-> Hooks hoạt động,


If these `react` imports resolve to two different exports objects, you will see this warning. This may happen if you **accidentally end up with two copies** of the `react` package.
Nếu những `react` được nhập này giải quyết hai đôi tượng xuất khác nhau, bạn sẽ thấy cảnh báo. Điều có thể xảy ra nếu bạn **đột ngột kết thúc với hai phiên bản** của gói `react`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

được nhập
-> Được import


If you use Node for package management, you can run this check in your project folder:
Nếu bạn sử dụng Node để quản lý gói, bạn có thể kiểm tra nó bằng cách chạy câu lệnh này trong thư mục dự án của bạn:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

quản lý gói
-> Giữ nguyên package nhé

@dinhtrung1308
Copy link
Contributor Author

Dạ em cảm ơn ạ. Để em sửa lại.

@dinhtrung1308
Copy link
Contributor Author

dinhtrung1308 commented Sep 16, 2021

Dạ em đã sửa lỗi theo yêu cầu ạ.

@Ryan-LT Ryan-LT merged commit 9a04991 into reactjs:main Sep 16, 2021
@Ryan-LT Ryan-LT mentioned this pull request Sep 16, 2021
95 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants