Skip to content

Commit

Permalink
[I10n] Improve Russian translation (#21480)
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonLukichev committed Jun 18, 2020
1 parent 9e2cbae commit e9007e1
Showing 1 changed file with 61 additions and 73 deletions.
134 changes: 61 additions & 73 deletions packages/material-ui/src/locale/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,8 @@ export const caES: Localization = {
// if (type === 'next') {
// return 'Go to next page';
// }
// if (type === 'previous') {
// return 'Go to previous page';
// }
// // if (type === 'previous') {
// return 'Go to previous page';
// },
// },
},
Expand Down Expand Up @@ -756,9 +755,8 @@ export const heIL: Localization = {
// if (type === 'next') {
// return 'Go to next page';
// }
// if (type === 'previous') {
// return 'Go to previous page';
// }
// // if (type === 'previous') {
// return 'Go to previous page';
// },
// },
},
Expand Down Expand Up @@ -934,9 +932,8 @@ export const hyAM: Localization = {
// if (type === 'next') {
// return 'Go to next page';
// }
// if (type === 'previous') {
// return 'Go to previous page';
// }
// // if (type === 'previous') {
// return 'Go to previous page';
// },
// },
},
Expand Down Expand Up @@ -994,9 +991,8 @@ export const idID: Localization = {
// if (type === 'next') {
// return 'Go to next page';
// }
// if (type === 'previous') {
// return 'Go to previous page';
// }
// // if (type === 'previous') {
// return 'Go to previous page';
// },
// },
},
Expand Down Expand Up @@ -1054,9 +1050,8 @@ export const isIS: Localization = {
// if (type === 'next') {
// return 'Go to next page';
// }
// if (type === 'previous') {
// return 'Go to previous page';
// }
// // if (type === 'previous') {
// return 'Go to previous page';
// },
// },
},
Expand Down Expand Up @@ -1173,9 +1168,8 @@ export const jaJP: Localization = {
// if (type === 'next') {
// return 'Go to next page';
// }
// if (type === 'previous') {
// return 'Go to previous page';
// }
// // if (type === 'previous') {
// return 'Go to previous page';
// },
// },
},
Expand Down Expand Up @@ -1233,9 +1227,8 @@ export const koKR: Localization = {
// if (type === 'next') {
// return 'Go to next page';
// }
// if (type === 'previous') {
// return 'Go to previous page';
// }
// // if (type === 'previous') {
// return 'Go to previous page';
// },
// },
},
Expand Down Expand Up @@ -1293,9 +1286,8 @@ export const nlNL: Localization = {
// if (type === 'next') {
// return 'Go to next page';
// }
// if (type === 'previous') {
// return 'Go to previous page';
// }
// // if (type === 'previous') {
// return 'Go to previous page';
// },
// },
},
Expand Down Expand Up @@ -1550,23 +1542,23 @@ export const roRO: Localization = {

export const ruRU: Localization = {
props: {
// MuiBreadcrumbs: {
// expandText: 'Show path',
// },
MuiBreadcrumbs: {
expandText: 'Показать полный путь',
},
MuiTablePagination: {
// getItemAriaLabel: (type) => {
// if (type === 'first') {
// return 'Go to first page';
// }
// if (type === 'last') {
// return 'Go to last page';
// }
// if (type === 'next') {
// return 'Go to next page';
// }
// // if (type === 'previous') {
// return 'Go to previous page';
// },
getItemAriaLabel: (type) => {
if (type === 'first') {
return 'Перейти на первую страницу';
}
if (type === 'last') {
return 'Перейти на последнюю страницу';
}
if (type === 'next') {
return 'Перейти на следующую страницу';
}
// if (type === 'previous') {
return 'Перейти на предыдущую страницу';
},
labelRowsPerPage: 'Строк на странице:',
labelDisplayedRows: ({ from, to, count }) =>
`${from}-${to} из ${count !== -1 ? count : `более чем ${to}`}`,
Expand All @@ -1584,7 +1576,7 @@ export const ruRU: Localization = {

return `${value} ${pluralForm}`;
},
// emptyLabelText: 'Empty',
emptyLabelText: 'Рейтинг отсутствует',
},
MuiAutocomplete: {
clearText: 'Очистить',
Expand All @@ -1596,26 +1588,26 @@ export const ruRU: Localization = {
MuiAlert: {
closeText: 'Закрыть',
},
// MuiPagination: {
// 'aria-label': 'Pagination navigation',
// getItemAriaLabel: (type, page, selected) => {
// if (type === 'page') {
// return `${selected ? '' : 'Go to '}page ${page}`;
// }
// if (type === 'first') {
// return 'Go to first page';
// }
// if (type === 'last') {
// return 'Go to last page';
// }
// if (type === 'next') {
// return 'Go to next page';
// }
// if (type === 'previous') {
// return 'Go to previous page';
// }
// },
// },
MuiPagination: {
'aria-label': 'Навигация по страницам',
getItemAriaLabel: (type, page, selected) => {
if (type === 'page') {
if (selected) return `${page} страница`;
return `Перейти на ${page} страницу`;
}
if (type === 'first') {
return 'Перейти на первую страницу';
}
if (type === 'last') {
return 'Перейти на последнюю страницу';
}
if (type === 'next') {
return 'Перейти на следующую страницу';
}
// if (type === 'previous') {
return 'Перейти на предыдущую страницу';
},
},
},
};

Expand Down Expand Up @@ -1679,9 +1671,8 @@ export const skSK: Localization = {
// if (type === 'next') {
// return 'Go to next page';
// }
// if (type === 'previous') {
// return 'Go to previous page';
// }
// // if (type === 'previous') {
// return 'Go to previous page';
// },
// },
},
Expand Down Expand Up @@ -1739,9 +1730,8 @@ export const svSE: Localization = {
// if (type === 'next') {
// return 'Go to next page';
// }
// if (type === 'previous') {
// return 'Go to previous page';
// }
// // if (type === 'previous') {
// return 'Go to previous page';
// },
// },
},
Expand Down Expand Up @@ -1928,9 +1918,8 @@ export const viVN: Localization = {
// if (type === 'next') {
// return 'Go to next page';
// }
// if (type === 'previous') {
// return 'Go to previous page';
// }
// // if (type === 'previous') {
// return 'Go to previous page';
// },
// },
},
Expand Down Expand Up @@ -1988,9 +1977,8 @@ export const zhCN: Localization = {
// if (type === 'next') {
// return 'Go to next page';
// }
// if (type === 'previous') {
// return 'Go to previous page';
// }
// // if (type === 'previous') {
// return 'Go to previous page';
// },
// },
},
Expand Down

0 comments on commit e9007e1

Please sign in to comment.