Skip to content

Commit

Permalink
[l10n] Add vietnamese (vi-VN) locale (#19439)
Browse files Browse the repository at this point in the history
* Update index.js

* Update index.d.ts

* Update localization.md

* Update index.d.ts

* Update index.js

* yarn prettier

Co-authored-by: Olivier Tassinari <olivier.tassinari@gmail.com>
  • Loading branch information
imcvampire and oliviertassinari committed Jan 28, 2020
1 parent 328c73a commit 5c84559
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/src/pages/guides/localization/localization.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ const theme = createMuiTheme({
| Swedish | sv-SE | `svSE` |
| Turkish | tr-TR | `trTR` |
| Ukrainian | uk-UA | `ukUA` |
| Vietnamese | vi-VN | `viVN` |

You can [find the source](https://github.com/mui-org/material-ui/blob/master/packages/material-ui/src/locale/index.js) in the GitHub repository.

Expand Down
1 change: 1 addition & 0 deletions packages/material-ui/src/locale/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ export const skSK: object;
export const svSE: object;
export const trTR: object;
export const ukUA: object;
export const viVN: object;
export const zhCN: object;
26 changes: 26 additions & 0 deletions packages/material-ui/src/locale/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -630,6 +630,32 @@ export const ukUA = {
},
};

export const viVN = {
props: {
MuiTablePagination: {
backIconButtonText: 'Trang trước',
labelRowsPerPage: 'Số hàng mỗi trang:',
labelDisplayedRows: ({ from, to, count }) =>
`${from}-${to === -1 ? count : to} trong ${count}`,
nextIconButtonText: 'Trang sau',
},
MuiRating: {
getLabelText: value => `${value} sao`,
emptyLabelText: 'Trống',
},
MuiAutocomplete: {
clearText: 'Xóa',
closeText: 'Đóng',
loadingText: 'Đang tải…',
noOptionsText: 'Không có lựa chọn',
openText: 'Mở',
},
MuiAlert: {
closeText: 'Đóng',
},
},
};

export const zhCN = {
props: {
MuiTablePagination: {
Expand Down

0 comments on commit 5c84559

Please sign in to comment.