Datepicker localization

QuestionsDatepicker localization
Massimo Gagliardi asked 10 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 10 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 10 years ago

Thank you Abu.
You are a true number one.

Your Answer

15 + 2 =

Login with your Social Id:

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 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

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

Let us improve this post!

Tell us how we can improve this post?