The locale property (string) specifies the locale ID used by date and date/time fields displayed by DayPilot.Modal.form().
If the value is not specified, the modal form uses the "en-us" locale.
DayPilot.Modal.localenullThis property provides the default locale for date and datetime fields in the form.
Individual form fields can override the form-wide DayPilot.Modal.locale setting using their own locale value.
const showDialog = async () => {
const form = [
{ name: "Start", id: "start", type: "date" },
{ name: "End", id: "end", type: "datetime" },
// ...
];
const data = {};
const options = {
locale: "de-de"
};
const modal = await DayPilot.Modal.form(form, data, options);
// ...
}