Skip to main content

i18n

Description

A set of methods for Scheduler localization

i18n: any

Details

The i18n object provides the following methods:

  • addLocale(languageCode, localeObject) - adds a new custom locale to Scheduler
    • languageCode - (string) a two-letter language code
    • localeObject - (object) an object of the locale
  • setLocale(localeObject: string|object) - activates a specified locale

The method can take as a parameter either a language code:

scheduler.i18n.setLocale("fr");

or an object of the locale:

scheduler.i18n.setLocale({
labels: {
day_tab: "Day",
}
});
  • getLocale(languageCode : string) - returns a locale object by the language code

Change log

  • added in v6.0
Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.