Braze JavaScript SDK
    Preparing search index...

    Function setUserLanguage

    • Sets the language for this user. By default, the user's language is detected automatically from the device. If you call this method, Braze will ignore the detected language and use the language you have provided instead.

      Parameters

      Returns Promise<boolean | undefined>

      Resolves to a boolean that indicates whether the update was successfully enqueued. Resolves to undefined if the SDK is not initialized.