DayPilot.Calendar.locale

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

Declaration

DayPilot.Calendar.locale

Default 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

DayPilot.Locale Class

DayPilot.Locale.register()

Localization [doc.daypilot.org]

DayPilot.Calendar Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript