React-native-auth0: Multiple languages support

Created on 21 Dec 2017  路  3Comments  路  Source: auth0/react-native-auth0

I want to choose language of auth0 login in browser! How can I do that?

Most helpful comment

Just to explain this a bit further, since it took me some time to figure it out. If you pass language parameter in authorize call:
auth0.webAuth.authorize({..., language: 'sv'})

Then on hosted page script the language parameter will be in
config.extraParams.language

And you can pass it as an option when creating Auth0Lock inside hosted script.

All 3 comments

You can make changes to the Hosted Login Page via your Auth0 Dashboard under Hosted Pages

Just to explain this a bit further, since it took me some time to figure it out. If you pass language parameter in authorize call:
auth0.webAuth.authorize({..., language: 'sv'})

Then on hosted page script the language parameter will be in
config.extraParams.language

And you can pass it as an option when creating Auth0Lock inside hosted script.

Will have this added to docs.

Was this page helpful?
0 / 5 - 0 ratings