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 lists and keys #19

Merged
merged 5 commits into from Mar 10, 2019

Conversation

NhanHoang8195
Copy link
Contributor

Complete translation for Lists and Keys page.

@netlify
Copy link

netlify bot commented Mar 6, 2019

Deploy preview for vi-reactjs-org ready!

Built with commit 5710384

https://deploy-preview-19--vi-reactjs-org.netlify.com

@ltmylinh ltmylinh requested review from nampdn and ltmylinh March 7, 2019 04:43
Copy link
Collaborator

@ltmylinh ltmylinh left a comment

Choose a reason for hiding this comment

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

Some minor comments

permalink: docs/lists-and-keys.html
prev: conditional-rendering.html
next: forms.html
---

First, let's review how you transform lists in JavaScript.
Đầu tiên, hãy xem lại cách bạn chuyển đổi danh sách (lists) trong Javascript.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Đầu tiên, hãy xem lại cách bạn chuyển đổi "danh sách" (lists) trong Javascript.


Given the code below, we use the [`map()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map) function to take an array of `numbers` and double their values. We assign the new array returned by `map()` to the variable `doubled` and log it:
Trong đoạn code bên dưới, chúng ta sử dụng hàm [`map()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map) để nhân đôi giá trị của từng phần tử trong mảng `numbers`. Chúng ta gán mảng mới là kết quả trả về từ hàm `map()` vào biến `doubled` và xuất kết quả đó ra:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Bạn đổi "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map" thành "https://developer.mozilla.org/vi/docs/Web/JavaScript/Reference/Global_Objects/Array/map" nhé. Những link tham khảo nào nếu tìm được link tiếng việt thì mình nên add vào để người đọc dễ tham khảo hơn.

@@ -42,15 +42,15 @@ ReactDOM.render(
);
```

[**Try it on CodePen**](https://codepen.io/gaearon/pen/GjPyQr?editors=0011)
[**Chạy thử trên CodePen**](https://codepen.io/gaearon/pen/GjPyQr?editors=0011)
Copy link
Collaborator

Choose a reason for hiding this comment

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

It shoud be "Thử trên CodePen**" vì chị thấy mấy phần dịch trước mọi người đang dùng từ này rồi.

- Change some urls link to Vietnamese instead of English version.
@NhanHoang8195
Copy link
Contributor Author

@ltmylinh
Cảm ơn chị, e đã update.

@tesseralis tesseralis mentioned this pull request Mar 9, 2019
95 tasks
@ltmylinh ltmylinh merged commit 6a7d96a into reactjs:master Mar 10, 2019
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