Skip to main content

locale

Description

Optional. An object defining a custom locale for Kanban

info

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

Usage

locale?: object;

Default config

Kanban uses the English locale by default. You can also specify a custom locale if needed.

tip

To switch the locale on the fly, the setLocale() method is available in Kanban.

Example

// create Kanban
const board = new kanban.Kanban("#root", {
columns,
cards,
locale: cn // the "cn" locale is applied initially
// other parameters
});

Related articles: Localization

Related sample: Kanban. Localization