Datatables French Language issue
Datatables French Language issue
AniketB
Posts: 1Questions: 1Answers: 0
I'm using Datatables 1.10.19
I want to localize (internationalize) the table controls.
var table = $('#table_id').DataTable({
language: {
url: "https://cdn.datatables.net/plug-ins/1.10.19/i18n/French.json"
}
});
The table controls are displayed in English and not French.
When I use url: "https://cdn.datatables.net/plug-ins/1.10.19/i18n/German.json"
, the table controls are localized in German language.
Then why is French not working?
This discussion has been closed.
Answers
The returned JSON is invalid:
The properties of the rows object are not surrounded by quotes. It should read:
This must be fixed at the CDN.
Yes, sorry. There is a bug in the current release file. I took a pull request to update it without validating the JSON - doh.
You'll need to host the file locally or use an old version for the moment until the next release.
Allan
I had found the sollution,
try this: