Skip to main content

locale

Description

Optional. An object of a custom locale of Kanban

info

The locale object needs to include all labels of Kanban and Toolbar with the corresponding translations.

Usage

locale?: object;

Default config

By default, Kanban uses the English locale. You can set it to the custom locale as well

tip

To change the current locale dynamically, you can use the setLocale() method of Kanban

Example

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

Related articles: Localization

Related sample: Kanban. Localization