Set languaage when opening lock popup

I am using Auth0 Lock library and I would like to set language when opening login popup, but it seems it’s only possible to set it when instantiating the Auth0Lock.
In our app user can change the language and then click on login and I would like to reflect selected language in login popup.

This sets the language

auth0Client = new Auth0Lock(clientId, domain, {
    language: 'cs'
})

but this has no effect:

auth0Client.show({
    language: 'cs'
})

Hi @kormik,

Welcome to the Auth0 Community!

I understand that you are trying to set the Czech language in Lock.

In this situation, I recommend reviewing our Language translation in Classic Universal Login FAQ, which goes into further detail on how to set your desired language in Lock.

Please let me know if you have any questions or need help with implementation.

Thank you.

Hi, thank you for your reply.
To clarify it:
I am able to set the language via options when I create instance of Auth0Lock, but I can’t do it when I call show() method. It seems to me like a bug in the library. This force me to create new instance of Auth0Lock every time a need to show login popup.

Thanks

Hi @kormik,

Thank you for your update.

Generally, you must specify the language settings when instantiating Lock as shown in this documentation.

Moreover, you should be able to use the popupOptions{} to show the login as a popup.

Please let me know how this works for you.

Thank you.