Function changeLanguage

  • Changes the language. The callback will be called as soon translations were loaded or an error occurs while loading. HINT: For easy testing - setting lng to 'cimode' will set t function to always return the key.

    Parameters

    • Optional lng: string
      Optional
    • Optional callback: Callback
      Optional

    Returns Promise<TFunction<"translation", undefined>>

Generated using TypeDoc