Skip to main content

locale

Description

Optional. An object of the built-in or custom locale

info

The locale object includes all labels of Event Calendar with the corresponding translations and date parameters

Usage

locale?: object;

Default config

By default, the locale config is set to the built-in English locale. You can set it to the custom locale as well

tip

To change the current locale dynamically, you can use the setLocale() method of Event Calendar

Example

// create Event Calendar
new eventCalendar.EventCalendar("#root", {
locale: eventСalendar.de // apply the "de" locale
// other configuration parameters
});

Related articles: Localization

Related sample: Event Calendar. Localization