Skip to main content

locale

Description

Optional. An object defining a custom locale for the Toolbar

info

The locale object should contain all the Kanban and Toolbar labels along with their translations.

Usage

locale?: object;

Default config

By default, the Toolbar uses the English locale. You can also configure it to use a custom locale.

tip

To switch the locale on the fly, use the setLocale() method of the Toolbar.

Example

// create Kanban
const board = new kanban.Kanban("#root", {
locale: cn
});
// create Toolbar
new kanban.Toolbar("#toolbar", {
api: board.api,
locale: cn // apply the "cn" locale to Toolbar
});

Related articles: Localization

Related sample: Kanban. Localization