The locale property (string | DayPilot.Locale) specifies the locale used by the JavaScript Gantt Chart component.
Declaration
DayPilot.Gantt.localePossible 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
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot