Function setLanguage

  • Sets the user interface language if it exists.

    Parameters

    • lang: string

      the language tag that the user interface should switch to

    Returns boolean

    whether the language exists