diff --git a/docs/src/pages/guides/localization/localization.md b/docs/src/pages/guides/localization/localization.md index 645304648171fe..265c1caf6ccbec 100644 --- a/docs/src/pages/guides/localization/localization.md +++ b/docs/src/pages/guides/localization/localization.md @@ -37,6 +37,7 @@ const theme = createMuiTheme({ | Portuguese (Brazil) | pt-BR | `ptBR` | | Russian | ru-RU | `ruRU` | | Spanish | es-ES | `esES` | +| Turkish | tr-TR | `trTR` | 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 b36c378b19d5c4..bd76f2ce048289 100644 --- a/packages/material-ui/src/locale/index.d.ts +++ b/packages/material-ui/src/locale/index.d.ts @@ -7,4 +7,5 @@ export const itIT: object; export const jaJP: object; export const ptBR: object; export const ruRU: object; +export const trTR: object; export const zhCN: object; diff --git a/packages/material-ui/src/locale/index.js b/packages/material-ui/src/locale/index.js index 7143e283105788..f70bd8b43c7464 100644 --- a/packages/material-ui/src/locale/index.js +++ b/packages/material-ui/src/locale/index.js @@ -68,8 +68,8 @@ export const faIR = { props: { MuiTablePagination: { backIconButtonText: 'صفحهٔ قبل', - labelDisplayedRows: ({ from, to, count }) => `${from}-${to === -1 ? count : to} از ${count}`, labelRowsPerPage: 'تعداد سطرهای هر صفحه:', + labelDisplayedRows: ({ from, to, count }) => `${from}-${to === -1 ? count : to} از ${count}`, nextIconButtonText: 'صفحهٔ بعد', }, MuiRating: { @@ -201,12 +201,34 @@ export const ruRU = { }, }; +export const trTR = { + props: { + MuiTablePagination: { + backIconButtonText: 'Önceki sayfa', + labelRowsPerPage: 'Sayfa başına satır:', + labelDisplayedRows: ({ from, to, count }) => + `${count} tanesinden ${from}-${to === -1 ? count : to}`, + nextIconButtonText: 'Sonraki sayfa', + }, + MuiRating: { + getLabelText: value => `${value} Yıldız`, + }, + MuiAutocomplete: { + clearText: 'Temizle', + closeText: 'Kapat', + loadingText: 'Yükleniyor…', + noOptionsText: 'Seçenek yok', + openText: 'Aç', + }, + }, +}; + export const zhCN = { props: { MuiTablePagination: { backIconButtonText: '上一页', - labelDisplayedRows: ({ from, to, count }) => `${from}-${to === -1 ? count : to} 的 ${count}`, labelRowsPerPage: '每页行数:', + labelDisplayedRows: ({ from, to, count }) => `${from}-${to === -1 ? count : to} 的 ${count}`, nextIconButtonText: '下一页', }, MuiRating: {