DayPilot.Modal.locale

The locale property (string) specifies the locale id. This locale will be used by the date and date/time fields displayed by DayPilot.Modal.form().

If the value is not specified, the modal form will use the "en-us" locale.

It overrides the locale specified for the form fields.

Default Value

null

Example

const showDialog = async () => {

  const form = [
    { name: "Name", id: "name" },
    // ...
  ];

  const data = {};

  const options = {
    locale: "de-de"
  };

  const modal = await DayPilot.Modal.form(form, data, options);

  // ...
}