Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where are the i18n files of jQuery UI datepicker >= 1.11.0

I downloaded jQuery UI from a custom build (http://jqueryui.com/download) and from http://jqueryui.com/download/all/... but the folder i18n is no longer present.

The Localization section of the docs still mention the files with the old filenames (like in 1.10):

Each localization is contained within its own file with the language code appended to the name, e.g., jquery.ui.datepicker-fr.js for French.

I found the files in GitHub, with the new filenames (datepicker-fr.js instead of jquery.ui.datepicker-fr.js), but I didn't find them anywhere else.

Is it a bug in the downloader with the new files structure in jQuery UI 1.11?

Is there somewhere else where we can find the i18n files, except in the GitHub source where it's not really versioned (i.e.: you just get the last files from master without knowing with which version of jQuery UI they are compatible).

like image 762
Yann Dìnendal Avatar asked Sep 10 '14 12:09

Yann Dìnendal


People also ask

What is datepicker format?

By default, the date format of the jQuery UI Datepicker is the US format mm/dd/yy, but we can set it to a custom display format, eg: for European dates dd-mm-yyyy and so on. The solution is to use the date picker dateFormat option.

How do I initialize a datepicker?

Initialize the datepicker and specify the date format in "yyyy-mm-dd". JavaScript Code : $( "#datepicker" ). datepicker(); $( "#datepicker" ).

How do you use a datepicker?

The datepicker is tied to a standard form input field. Focus on the input (click, or use the tab key) to open an interactive calendar in a small overlay. Choose a date, click elsewhere on the page (blur the input), or hit the Esc key to close. If a date is chosen, feedback is shown as the input's value.


2 Answers

The vendor's upgrade guide mentions the following:

"If you want the complete jQuery UI source files, demos, and tests, you can get them from: https://github.com/jquery/jquery-ui/releases."

It is here where you will find the files you're looking for, within the appropriate version(s).

I also found the minified file is being hosted by google: http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.1/i18n/jquery-ui-i18n.min.js

like image 170
ne1410s Avatar answered Oct 21 '22 07:10

ne1410s


I ended up downloading the files from https://github.com/jquery/jquery-ui/tree/master/ui/i18n, but I would still like to know if they are available elsewhere.

I have tested them and can confirm they are compatible with my jQuery UI 1.11.1 datepicker.

like image 43
Yann Dìnendal Avatar answered Oct 21 '22 05:10

Yann Dìnendal