DayPilot.Scheduler.locale

The locale property (string | DayPilot.Locale) sets the locale used by the JavaScript Scheduler component to apply culture-specific settings.

You can specify either a DayPilot.Locale object or a locale id string such as "en-us".

Declaration

DayPilot.Scheduler.locale

Notes

The selected locale affects localized date and time formatting, including Scheduler header date formatting.

Examples

JavaScript

const dp = new DayPilot.Scheduler("dp", {
  locale: "en-us",
  // ...
});
dp.init();

Angular

<daypilot-scheduler [config]="config"></daypilot-scheduler>
config: DayPilot.SchedulerConfig = {
  locale: "en-us",
  // ...
};

React

<DayPilotScheduler
  locale="en-us"
  {/* ... */}
/>

Vue

<DayPilotScheduler
  locale="en-us"
  <!-- ... -->
/>

See Also

DayPilot.Locale Class

Header Date Format [doc.daypilot.org]

Localization [doc.daypilot.org]

DayPilot.Scheduler Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript