Files
pstreact/node_modules/@mui/material/esm/locale/beBY.js
2026-03-13 19:23:37 +03:00

85 lines
2.7 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
export const beBY = {
components: {
MuiBreadcrumbs: {
defaultProps: {
expandText: 'Паказаць шлях'
}
},
MuiTablePagination: {
defaultProps: {
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}`}`
}
},
MuiRating: {
defaultProps: {
getLabelText: value => {
let pluralForm = 'Зорак';
const lastDigit = value % 10;
if (lastDigit > 1 && lastDigit < 5 && (value < 10 || value > 20)) {
pluralForm = 'Зоркі';
} else if (lastDigit === 1 && value % 100 !== 11) {
pluralForm = 'Зорка';
}
return `${value} ${pluralForm}`;
},
emptyLabelText: 'Рэйтынг адсутнічае'
}
},
MuiAutocomplete: {
defaultProps: {
clearText: 'Ачысціць',
closeText: 'Закрыць',
loadingText: 'Загрузка…',
noOptionsText: 'Няма варыянтаў',
openText: 'Адкрыць'
}
},
MuiAlert: {
defaultProps: {
closeText: 'Закрыць'
}
},
MuiPagination: {
defaultProps: {
'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 'Перайсці на папярэднюю старонку';
}
}
}
}
};