Function addTasks

Adds tasks to be executed on language change.

  • Parameters

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

      The tasks to add.

    Returns boolean

    True if added correctly, false otherwise.