i18n

a set of methods for Scheduler localization

object i18n;
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
See also
  • Articles
  • Change log

    added in v6.0

    Back to top