UNPKG

@mui/material

Version:

Material UI is an open-source React component library that implements Google's Material Design. It's comprehensive and can be used in production out of the box.

77 lines (75 loc) 2.32 kB
import buildFormatNumber from "./utils/buildFormatNumber.mjs"; const formatNumber = buildFormatNumber('el-GR'); export const elGR = { 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 }) => `${formatNumber(from)}${formatNumber(to)} από ${count !== -1 ? formatNumber(count) : `πάνω από ${formatNumber(to)}`}` } }, MuiRating: { defaultProps: { getLabelText: value => `${value} Αστέρι${value !== 1 ? 'α' : ''}`, emptyLabelText: 'Χωρίς βαθμολόγηση' } }, MuiAutocomplete: { defaultProps: { clearText: 'Καθαρισμός', closeText: 'Κλείσιμο', loadingText: 'Φόρτωση…', noOptionsText: 'Δεν υπάρχουν επιλογές', openText: 'Άνοιγμα' } }, MuiAlert: { defaultProps: { closeText: 'Κλείσιμο' } }, MuiPagination: { defaultProps: { 'aria-label': 'Πλοήγηση σε σελίδες', getItemAriaLabel: (type, page, selected) => { if (type === 'page') { return `${selected ? '' : 'Μετάβαση '}σελίδα ${page}`; } if (type === 'first') { return 'Πρώτη σελίδα'; } if (type === 'last') { return 'Τελευταία σελίδα'; } if (type === 'next') { return 'Επόμενη σελίδα'; } // if (type === "previous") { return 'Προηγούμενη σελίδα'; } } } } };