locale
Description
Optional. An object of a custom locale of Toolbar
info
The locale object needs to include all labels of Kanban and Toolbar with the corresponding translations.
Usage
locale?: object;
Default config
By default, Toolbar 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 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