setLocale()
Description
Applies a new locale to Booking
Usage
setLocale(null | locale?: object): void;
Parameters
null
- (optional) resets to the default locale (English)locale
- (optional) the object of data of the new locale to be applied
Example
// create Booking
const booking = new booking.Booking("#root", {
data,
// initial configuration parameters
});
// apply the "de" locale to Booking
booking.setLocale(de);
// apply the default locale to Booking
booking.setLocale(); // or setLocale(null);
Related articles: