Skip to main content

locale

Description​

Optional. An object of a custom locale of Booking

Usage​

locale?: object;

Default config​

By default, Booking uses the 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

Example​

const { data } = getData();
const widget = new booking.Booking("#root", {
data,
locale: booking.locales.de
});

Related articles: