Datepicker localization

QuestionsDatepicker localization
Massimo Gagliardi asked 5 years ago

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
Abu Ghufran answered 5 years ago

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&quot; 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>

Massimo Gagliardi answered 5 years ago

Thank you Abu.
You are a true number one.

Your Answer

19 + 17 =

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating / 5. Vote count:

We are sorry that this post was not useful for you!

Let us improve this post!