![]() ![]() You can restore the default localizations with: $.tDefaults( $.datepicker.regional ) Īnd can then override an individual datepicker for a specific locale: $( selector ).datepicker( $.datepicker.regional ) Each entry is an object with the following attributes: closeText, prevText, nextText, currentText, monthNames, monthNamesShort, dayNames, dayNamesShort, dayNamesMin, weekHeader, dateFormat, firstDay, isRTL, showMonthAfterYear, and yearSuffix. The $.datepicker.regional attribute holds an array of localizations, indexed by language code, with "" referring to the default (English). Each localization file adds its options to the set of available localizations and automatically applies them as defaults for all instances. The desired localization file should be included after the main datepicker code. #Jquery setdate codeEach localization is contained within its own file with the language code appended to the name, e.g., jquery.ui.datepicker-fr.js for French.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |