Skip to content

Commit

Permalink
[l10n] Add Turkish translation (#18509)
Browse files Browse the repository at this point in the history
  • Loading branch information
yunusemredilber authored and oliviertassinari committed Nov 22, 2019
1 parent aa1705c commit ce0c6e0
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 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 @@ -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.

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 @@ -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;
26 changes: 24 additions & 2 deletions packages/material-ui/src/locale/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down Expand Up @@ -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: {
Expand Down

0 comments on commit ce0c6e0

Please sign in to comment.