i18n in external editor datepicker
i18n in external editor datepicker
I am successfully externally using the standard editor datepicker on a page that holds an instance of datatables
i.e.
new $.fn.dataTable.Editor.DateTime( $('#datepicker'), {format: 'YYYY-MM-DD'});
but I am unable to force it into take the i18n: options such as
i18n:{
datetime:{
months:["Jaanuar","Veebruar","Märts","Aprill","Mai","Juuni","Juuli","August","September","Oktoober","November","Detsember"],weekdays:["Pü7hap","Esmasp","Teisip","Kolmap","Neljap","Reede","Laup"]}};
It just ignores and uses default English
However these i18n options work fine with inline, button and bubble editor within datatables.
I tried replace the
i18n: {... directive with
language: {...
Still no joy. Any insight would be welcome
thank you
This question has an accepted answers - jump to answer
Answers
You are hitting the fact that this isn't either documented or directly supported . However, you can do what you are looking for - you just need to drop the
datetime
property in your object:Allan