Function addTasks

Adds tasks to be executed on language change.

addTasks({ reload: lang => console.log(lang) });
  • Parameters

    • tasks: Record<string, ((lang: string) => void)>

      The tasks to add.

    Returns boolean

    True if added correctly, false otherwise.