From 31fb0e72a51aa33ce78853d240ca3275089846d2 Mon Sep 17 00:00:00 2001 From: Fuadi Naqi <32381015+fuadinaqi@users.noreply.github.com> Date: Fri, 13 Dec 2019 22:01:02 +0700 Subject: [PATCH] [l10n] Add Indonesian (id-Id) locale (#18817) --- .../pages/guides/localization/localization.md | 1 + packages/material-ui/src/locale/index.d.ts | 1 + packages/material-ui/src/locale/index.js | 22 +++++++++++++++++++ 3 files changed, 24 insertions(+) diff --git a/docs/src/pages/guides/localization/localization.md b/docs/src/pages/guides/localization/localization.md index 48d6292cf88c5c..a3d669e00a2016 100644 --- a/docs/src/pages/guides/localization/localization.md +++ b/docs/src/pages/guides/localization/localization.md @@ -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` | diff --git a/packages/material-ui/src/locale/index.d.ts b/packages/material-ui/src/locale/index.d.ts index 9eab68f61bd1ae..6254a07c7e6fd5 100644 --- a/packages/material-ui/src/locale/index.d.ts +++ b/packages/material-ui/src/locale/index.d.ts @@ -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; diff --git a/packages/material-ui/src/locale/index.js b/packages/material-ui/src/locale/index.js index af903dde7cdb17..5f2ece97c6ec82 100644 --- a/packages/material-ui/src/locale/index.js +++ b/packages/material-ui/src/locale/index.js @@ -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: {