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

[l10n] Add Indonesian (id-Id) locale #18817

Merged
merged 5 commits into from
Dec 13, 2019
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
21 changes: 21 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,27 @@ export const frFR = {
},
};

export const idID = {
props: {
MuiTablePagination: {
backIconButtonText: 'Halaman sebelumnya',
labelRowsPerPage: 'Baris per halaman:',
labelDisplayedRows: ({ from, to, count }) => `${from}-${to === -1 ? count : to} of ${count}`,
fuadinaqi marked this conversation as resolved.
Show resolved Hide resolved
nextIconButtonText: 'Halaman selanjutnya',
},
MuiRating: {
getLabelText: value => `${value} Star${value !== 1 ? 's' : ''}`,
fuadinaqi marked this conversation as resolved.
Show resolved Hide resolved
},
MuiAutocomplete: {
clearText: 'Hapus',
closeText: 'Tutup',
loadingText: 'Memuat…',
noOptionsText: 'Tidak ada opsi',
openText: 'Buka',
},
},
};

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