I visited http://api.jqueryui.com/datepicker/ and I followed the steps to the localization and I understood how obtain a control in italian language, but, I ask, where I must put the declaration:
$.datepicker.setDefaults( $.datepicker.regional[ "it" ] );
and where I must download the jquery.ui.datepicker-it.js ??
Thanks in advance
2 Answers
Add following code in html head, after downloading and setting lang file path. e.g.
<script src="http://jqueryui.com/resources/demos/datepicker/datepicker-ar.js" type="text/javascript"></script>
<script>
$.datepicker.setDefaults( $.datepicker.regional[ "ar" ] );
All language files can be downloaded from:
https://github.com/jquery/jquery-ui/tree/master/ui/i18n
</script>
Your Answer