setLocale()
Description
Applies a new locale to the Toolbar of Kanban
Usage
setLocale(locale?: object, api?: object): void;
Parameters
locale
- (optional) an object of the locale to be applied to the Toolbar of Kanbanapi
- (optional) an object with the internal API of Kanban
info
The Toolbar of Kanban is a separate component. Before changing its locale, be sure that you have already applied the setLocale()
method to the Kanban component
Example
// create Kanban
const board = new kanban.Kanban("#root", {});
// create Toolbar
const toolbar = new kanban.Toolbar("#toolbar", { api: board.api });
// apply the "de" locale to Kanban
board.setLocale(de);
// apply the "de" locale to the Toolbar
toolbar.setLocale(de, board.api);
Chande log: The api parameter was added in v1.5.7
Related articles: Localization