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.

82 lines (81 loc) 2.34 kB
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default; Object.defineProperty(exports, "__esModule", { value: true }); exports.viVN = void 0; var _buildFormatNumber = _interopRequireDefault(require("./utils/buildFormatNumber")); const formatNumber = (0, _buildFormatNumber.default)('vi-VN'); const viVN = exports.viVN = { components: { MuiBreadcrumbs: { defaultProps: { expandText: 'Mở ra' } }, MuiTablePagination: { defaultProps: { getItemAriaLabel: type => { if (type === 'first') { return 'Tới trang đầu tiên'; } if (type === 'last') { return 'Tới trang cuối cùng'; } if (type === 'next') { return 'Tới trang tiếp theo'; } // if (type === 'previous') { return 'Về trang trước đó'; }, labelRowsPerPage: 'Số hàng mỗi trang:', labelDisplayedRows: ({ from, to, count }) => `${formatNumber(from)}${formatNumber(to)} trong ${count !== -1 ? formatNumber(count) : `nhiều hơn ${formatNumber(to)}`}` } }, MuiRating: { defaultProps: { getLabelText: value => `${value} sao`, emptyLabelText: 'Không có dữ liệu' } }, MuiAutocomplete: { defaultProps: { clearText: 'Xóa', closeText: 'Đóng', loadingText: 'Đang tải…', noOptionsText: 'Không có lựa chọn nào', openText: 'Mở' } }, MuiAlert: { defaultProps: { closeText: 'Đóng' } }, MuiPagination: { defaultProps: { 'aria-label': 'Thanh điều khiển trang', getItemAriaLabel: (type, page, selected) => { if (type === 'page') { return `${selected ? '' : 'Tới '}trang ${page}`; } if (type === 'first') { return 'Tới trang đầu tiên'; } if (type === 'last') { return 'Tới trang cuối cùng'; } if (type === 'next') { return 'Tới trang tiếp theo'; } // if (type === 'previous') { return 'Về trang trước đó'; } } } } };