The DayPilot.Locale.register() static menthod registers a locale so it can be referenced using its id.
DayPilot.Locale.register(locale);
locale
- DayPilot.Locale object
Many common locales are registered by default (see the list at the DayPilot.Locale class page).
DayPilot.Locale.register(
new DayPilot.Locale('en-us',
{
dayNames: ['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'],
dayNamesShort: ['Su','Mo','Tu','We','Th','Fr','Sa'],
monthNames: ['January','February','March','April','May','June','July','August','September','October','November','December'],
monthNamesShort: ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'],
timePattern: 'h:mm tt',
datePattern: 'M/d/yyyy',
dateTimePattern: 'M/d/yyyy h:mm tt',
timeFormat: 'Clock12Hours',
weekStarts: 0
}
));