Skip to main content

setLocale()

Description

Applies a new locale to Kanban

Usage

setLocale(null | locale?: object): void;

Parameters

  • null - (optional) resets to the default locale (English)
  • locale - (optional) the object of data of the new locale to be applied
info

Using this method, you can apply a new locale to Kanban. To reset Kanban to the default locale, call the method without arguments (or with a null value)

Example

// create Kanban
const board = new kanban.Kanban("#root", {
columns,
cards,
});
// apply the "de" locale to Kanban
board.setLocale(de);
// apply the default locale to Kanban
board.setLocale(); // or board.setLocale(null);

Chande log: The method was updated in v1.2

Related articles: Localization