Skip to content

Commit 166f107

Browse files
committed
Datepicker: Document where localization files are available
Fixes jquerygh-225
1 parent 8337195 commit 166f107

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entries/datepicker.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@
175175
</div>
176176

177177
<h3>Localization</h3>
178-
<p>Datepicker provides support for localizing its content to cater for different languages and date formats. Each localization is contained within its own file with the language code appended to the name, e.g., <code>jquery.ui.datepicker-fr.js</code> for French. The desired localization file should be included after the main datepicker code. Each localization file adds its settings to the set of available localizations and automatically applies them as defaults for all instances.</p>
178+
<p>Datepicker provides support for localizing its content to cater for different languages and date formats. Each localization is contained within its own file with the language code appended to the name, e.g., <code>jquery.ui.datepicker-fr.js</code> for French. The desired localization file should be included after the main datepicker code. Each localization file adds its settings to the set of available localizations and automatically applies them as defaults for all instances. Localization files can be found at <a href="https://github.com/jquery/jquery-ui/tree/master/ui/i18n">https://github.com/jquery/jquery-ui/tree/master/ui/i18n</a>.</p>
179179
<p>The <code>$.datepicker.regional</code> attribute holds an array of localizations, indexed by language code, with <code>""</code> referring to the default (English). Each entry is an object with the following attributes: <code>closeText</code>, <code>prevText</code>, <code>nextText</code>, <code>currentText</code>, <code>monthNames</code>, <code>monthNamesShort</code>, <code>dayNames</code>, <code>dayNamesShort</code>, <code>dayNamesMin</code>, <code>weekHeader</code>, <code>dateFormat</code>, <code>firstDay</code>, <code>isRTL</code>, <code>showMonthAfterYear</code>, and <code>yearSuffix</code>.</p>
180180
<p>You can restore the default localizations with:</p>
181181
<code>$.datepicker.setDefaults( $.datepicker.regional[ "" ] );</code>

0 commit comments

Comments
 (0)