The locale property (string | DayPilot.Locale) sets the locale used by the JavaScript Calendar component to apply culture-specific settings.
DayPilot.Calendar.locale"en-us"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.
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"
<!-- ... -->
/>Localization [doc.daypilot.org]