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 Turkish translation #18509

Merged
merged 3 commits into from
Nov 22, 2019
Merged
Show file tree
Hide file tree
Changes from all 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 @@ -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