Namespace jsDate.regional
Holds localizations for month/day names.
jsDate attempts to detect locale when loaded and defaults to 'en'. If a localization is detected which is not available, jsDate defaults to 'en'. Additional localizations can be added after jsDate loads. After adding a localization, call the jsDate.regional.getLocale() method. Currently, en, fr and de are defined.
Localizations must be an object and have the following properties defined: monthNames, monthNamesShort, dayNames, dayNamesShort and Localizations are added like:
jsDate.regional['en'] = {
monthNames : 'January February March April May June July August September October November December'.split(' '),
monthNamesShort : 'Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec'.split(' '),
dayNames : 'Sunday Monday Tuesday Wednesday Thursday Friday Saturday'.split(' '),
dayNamesShort : 'Sun Mon Tue Wed Thu Fri Sat'.split(' ')
};
After adding localizations, call jsDate.regional.getLocale(); to update the locale setting with the
new localizations.
Defined in: jsdate.js.
Method Summary