Setting locales using the Flutter SDK

Hi,

Is there a way of setting the locale-language on the new universal login page from the auth0 Flutter SDK?

From what I’ve noticed, the login page uses the phone’s system language, which is a reasonable default. The app I’m developing, however, allows the user to set a language, irrespective of the system one.

Looking at the signature of the WebAuthentication.login() method, I don’t see any parameters that would allow setting the locale-language. Unless I should pass some argument to Map<String, String> parameters ?

Cheers,
Marcin

1 Like

Have you found a solution? we have the same problem

Hi,

unfortunately, I haven’t. I’m relying on the out-of-the-box implementation, which is to use the phone’s system locale.

Cheers,
Marcin

it’s possible to add a parameter to indicate which locale you want to the universal login

_auth0
            .webAuthentication(scheme: appScheme)
            .login(
                audience: audience,
                parameters: {
                        'ui_locales': 'en'
                      }
                );