Data Table Translate
Data Table Translate
Code:
$(document).ready(function () {
$('#example_wrapper').DataTable();
language: {
url: "https://cdn.datatables.net/plug-ins/1.12.1/i18n/pt-BR.json"
}
});
I got the table id it presented when inspecting the element:
I'm putting the function in the js.min.js file and calling it in the main html, the JS functions are working like sorting by name, or the search field, only the translation won't work.
This question has an accepted answers - jump to answer
Answers
We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.
Cheers,
Colin
Thnks, working now!
Code:
$(document).ready(function () {
var table = $('#example').DataTable({
// Localization
"language": {
"url": "https://cdn.datatables.net/plug-ins/1.12.1/i18n/pt-BR.json"
},
"responsive": true
}).draw(true).columns.adjust();
});