Translate datatable to Spanish
Translate datatable to Spanish
SebasSal
Posts: 1Questions: 1Answers: 0
Hello,
I am trying to translate my datatable to Spanish and I look into several options.
I placed the following in the language option:
language: {
url: 'dataTables.spanish.json'
},
language: {
url: '//cdn.datatables.net/plug-ins/1.10.24/i18n/Spanish_Mexico.json'
},
Neither of these worked, and plugging in the JSON in this page worked only partially.
This discussion has been closed.
Answers
Using your code snippet here:
http://live.datatables.net/nuzojoku/1/edit
Results in this error:
Changing the URL to
Germon.json
does work. @allan or @colin will need to take a look at why the error is occuring.I did the same here:
http://live.datatables.net/huxozicu/1/edit
What is not working or not correct?
Kevin
The problem is that
Spanish_Mexico
isn't an option - see full list here: http://cdn.datatables.net/plug-ins/1.10.24/i18n/ .Choosing
Spanish
gives the expected behaviour: http://live.datatables.net/nuzojoku/2/editColin
Its listed on this page:
https://datatables.net/plug-ins/i18n/
There is a Spanish and Spanish-Mexico. Click on
Spanish - Mexico
and you will see the following CDN URL:Maybe the json file is missing.
Kevin
Hi all,
Spanish-Mexico is a new language that we have received within the last week. Because the plug-ins repo hasn't had a release since then it isn't on the cdn.
The page you've referenced, Kevin is automatically generated, hence why it is off. I'll take a look at adding a note to the pages to say this, apologies for the inconvenience.
Thanks,
Sandy