Skip to content

Commit

Permalink
[l10n] Add Indonesian (id-Id) locale (#18817)
Browse files Browse the repository at this point in the history
  • Loading branch information
fuadinaqi authored and oliviertassinari committed Dec 13, 2019
1 parent 3bbc68d commit 31fb0e7
Show file tree
Hide file tree
Showing 3 changed files with 24 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 @@ -32,6 +32,7 @@ const theme = createMuiTheme({
| English (United States) | en-US | `enUS` |
| French | fr-FR | `frFR` |
| German | de-DE | `deDE` |
| Indonesian | id-ID | `idID` |
| Italian | it-IT | `itIT` |
| Japanese | ja-JP | `jaJP` |
| Persian | fa-IR | `faIR` |
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 @@ -3,6 +3,7 @@ export const enUS: object;
export const esES: object;
export const faIR: object;
export const frFR: object;
export const idID: object;
export const itIT: object;
export const jaJP: object;
export const nlNL: object;
Expand Down
22 changes: 22 additions & 0 deletions packages/material-ui/src/locale/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,28 @@ export const frFR = {
},
};

export const idID = {
props: {
MuiTablePagination: {
backIconButtonText: 'Halaman sebelumnya',
labelRowsPerPage: 'Baris per halaman:',
labelDisplayedRows: ({ from, to, count }) =>
`${from}-${to === -1 ? count : to} dari ${count}`,
nextIconButtonText: 'Halaman selanjutnya',
},
MuiRating: {
getLabelText: value => `${value} Bintang`,
},
MuiAutocomplete: {
clearText: 'Hapus',
closeText: 'Tutup',
loadingText: 'Memuat…',
noOptionsText: 'Tidak ada opsi',
openText: 'Buka',
},
},
};

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

0 comments on commit 31fb0e7

Please sign in to comment.