DayPilot.Gantt.locale

The locale property (string | DayPilot.Locale) specifies the locale used by the JavaScript Gantt Chart component.

Declaration

DayPilot.Gantt.locale

Possible Values

  • DayPilot.Locale object - locale object instance that supplies localized strings and settings.

  • DayPilot.Locale identifier string, for example "en-us".

Examples

JavaScript

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

Angular

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

React

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

Vue

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

See Also

DayPilot.Gantt Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript