I'm using the jQuery datepicker from jqueryui.com and I have a problem changing the calendar to Swedish, I have this code:
<script type="text/javascript"> $(function() { $.datepicker.setDefaults($.datepicker.regional['sv']); $("#StartDate").datepicker(); $('#StartDate').datepicker('option', 'dateFormat', 'yy-mm-dd'); }); </script>
Still it shows as an English calendar.
What might be missing?
Maybe you don't have a language file:
Language files are here: https://github.com/jquery/jquery-ui/tree/master/ui/i18n
A new localization should be created in a separate JavaScript file named ui.datepicker-.js. Within a document.ready event it should add a new entry into the $.datepicker.regional array, indexed by the language code, with the following attributes:
http://api.jqueryui.com/datepicker/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With