Closed smalos closed 2 years ago
Is it possible to pass some "custom" locales in the options, something like this? What would be the correct syntax?
const datepicker = new Datepicker(elem, { locales : { days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], daysShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], daysMin: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], monthsShort: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], today: "Today", clear: "Clear", titleFormat: "MM y" } });
https://mymth.github.io/vanillajs-datepicker/#/i18n?id=adding-languages https://mymth.github.io/vanillajs-datepicker/#/i18n?id=custom-locale
Thanks, that helped.
Is it possible to pass some "custom" locales in the options, something like this? What would be the correct syntax?