Localization
This package decided that the cost of bringing in another library to perform localizations would be too expensive. Instead the ability to override all text labels (which aren't many) is offered through the options property textLabels
. The available strings:
const options = {
// other options...
textLabels: {
body: {
noMatch: 'Sorry, no matching records found',
toolTip: 'Sort',
columnHeaderTooltip: column => `Sort for ${column.label}`
},
pagination: {
next: 'Next Page',
previous: 'Previous Page',
rowsPerPage: 'Rows per page:',
displayRows: 'of'
},
toolbar: {
search: 'Search',
downloadCsv: 'Download CSV',
print: 'Print',
viewColumns: 'View Columns',
filterTable: 'Filter Table'
},
filter: {
all: 'All',
title: 'FILTERS',
reset: 'RESET'
},
viewColumns: {
title: 'Show Columns',
titleAria: 'Show/Hide Table Columns'
},
selectedRows: {
text: 'row(s) selected',
delete: 'Delete',
deleteAria: 'Delete Selected Rows'
}
}
// other options...
}