Skip to main content

locale

Description

Optional. An object of the built-in or custom locale

info

The locale object includes all labels of the Kanban with the corresponding translations

Usage

locale?: object;

Default config

By default, the locale parameter is set to the built-in en locale. You can set it to the ru, cn or custom locale as well

tip

To change the default locale, you can use the setLocale() method

Example

// create Kanban
const board = new kanban.Kanban("#root", {
columns,
cards,
locale: kanban.ru // the "ru" locale will be set initially
// other parameters
});
info

The Toolbar of Kanban is a separate part of the interface. To apply a new locale to the Toolbar, you need to set the locale property to the needed locale object as well

// create Toolbar
new kanban.Toolbar("#toolbar", {
api: board.api,
locale: kanban.ru // apply the "ru" locale to the Toolbar
});

Related articles: Localization

Related sample: Kanban. Localization