DayPilot.Month.locale

The locale property specifies the locale used by the JavaScript Month component.

Declaration

DayPilot.Month.locale

Notes

You can specify the locale using a DayPilot.Locale object or a locale id string, for example "en-us".

Examples

JavaScript

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

Angular

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

React

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

Vue

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

See Also

DayPilot.Locale Class

Localization [doc.daypilot.org]

DayPilot.Month Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript