DayPilot.Locale.register

Registers a locale so it can be referenced using its id.

Declaration

DayPilot.Locale.register(locale);

Parameters

Notes

Many common locales are registered by default (see the list at the DayPilot.Locale class page).

Example

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
  }
));