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.localeNotes
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
Header Date Format [doc.daypilot.org]
Localization [doc.daypilot.org]
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot