diff --git a/docs/src/pages/guides/localization/localization.md b/docs/src/pages/guides/localization/localization.md index cf675be9280fee..b47924bd2dc74c 100644 --- a/docs/src/pages/guides/localization/localization.md +++ b/docs/src/pages/guides/localization/localization.md @@ -50,6 +50,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. diff --git a/packages/material-ui/src/locale/index.d.ts b/packages/material-ui/src/locale/index.d.ts index d8769efcc16275..792d01e86f8c00 100644 --- a/packages/material-ui/src/locale/index.d.ts +++ b/packages/material-ui/src/locale/index.d.ts @@ -20,4 +20,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; diff --git a/packages/material-ui/src/locale/index.js b/packages/material-ui/src/locale/index.js index 1bc9aa7d3ff368..144d365bd19ed0 100644 --- a/packages/material-ui/src/locale/index.js +++ b/packages/material-ui/src/locale/index.js @@ -605,6 +605,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: {