a set of methods for Gantt chart localization

object i18n;

The i18n object provides the following methods:

  • addLocale(languageCode, localeObject) - adds a new custom locale in Gantt
    • 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:


or an object of the locale:

   labels: {
       new_task:"new task"
  • getLocale(languageCode : string) - returns a locale object by the language code
See also
  • Articles
  • Change log

    added in v7.0

    Back to top