Translate button pageLength inside language file .json

Translate button pageLength inside language file .json

itajackassitajackass Posts: 162Questions: 48Answers: 3

I don't know how to set this translation inside json file to prevent to modify all datatables in all pages.....

$('#myTable').DataTable( {
dom: 'Bfrtip',
language: {
    buttons: {
        pageLength: {
            _: "Afficher %d éléments",
            '-1': "Tout afficher"
        }
    }
},
buttons: [
    'pageLength'
]
} );

This question has an accepted answers - jump to answer

Answers

This discussion has been closed.