The locale property (string | DayPilot.Locale) sets the locale used by the JavaScript Calendar component to apply culture-specific settings.
Declaration
DayPilot.Calendar.localeDefault Value
"en-us"Notes
You can choose one of the predefined locales or register your own locale using DayPilot.Locale.register().
The locale affects the default date and time formatting, day and month names, and the first day of week used by the calendar.
Examples
JavaScript
const calendar = new DayPilot.Calendar("dp", {
locale: "de-de",
// ...
});
calendar.init();Angular
<daypilot-calendar [config]="config"></daypilot-calendar>config: DayPilot.CalendarConfig = {
locale: "de-de",
// ...
};React
<DayPilotCalendar
locale="de-de"
{/* ... */}
/>Vue
<DayPilotCalendar
locale="de-de"
<!-- ... -->
/>See Also
Localization [doc.daypilot.org]
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot