locale
Description
Optional. An object defining a custom locale for Kanban
info
The locale object should contain all Kanban and Toolbar labels along with their translations.
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, use the setLocale() method provided by Kanban.
Example
// create Kanban
const board = new kanban.Kanban("#root", {
columns,
cards,
locale: kanban.locales["cn"] // sets the initial locale to "cn"
// other parameters
});
Related articles: Localization
Related sample: Kanban. Localization