The DayPilot.Locale constructor creates a locale object that defines localized day names, month names, and date/time formatting rules.
new DayPilot.Locale(id, properties)id (string) - locale identifier, for example "en-us".
properties (object) - locale settings that specify day names, month names, and formatting fields such as timePattern, datePattern, dateTimePattern, and timeFormat.
The properties object shown below defines custom day and month names together with 12-hour time formatting.
const localeUS = new DayPilot.Locale("en-us", {
dayNames: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
dayNamesShort: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
monthNames: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", ""],
timePattern: "h:mm tt",
datePattern: "M/d/yyyy",
dateTimePattern: "M/d/yyyy h:mm tt",
timeFormat: "Clock12Hours"
});Calendar Localization [doc.daypilot.org]
Scheduler Localization [doc.daypilot.org]
Navigator Localization [doc.daypilot.org]