I'm trying to include the jQuery UI datepicker with a default locale using
jQuery(document).ready(function($){
$.datepicker.setDefaults($.datepicker.regional["it"]);
$('#div-where-place-datepicker').datepicker({
"dateFormat": "dd/mm/yy"
});
});
According to docs I'm adding it to a div so the datepicker is shown inline on page load (like a calendar).
The problem is that after page load the calendar is not localized (english texts) and after I interact with it it loads the localization (it becomes italian).
Any fix for this?