To translate messages displayed by jQuery DataTables Checkboxes use the following options:
- language.select.rows – number of rows selected in the information section.
For example:
var table = $('#example').DataTable({
'language': {
'select': {
'rows': {
'_': '%d rows selected',
'0': '',
'1': '%d row selected'
}
}
},
'ajax': 'https://api.myjson.com/bins/1us28',
'columnDefs': [
{
'targets': 0,
'checkboxes': {
'selectRow': true
}
}
],
'select': {
'style': 'multi'
},
'order': [[1, 'asc']]
});