changePassword flow language support

We have existing app we support in english language, we enhanced app to chinese language, But we stuck with support for
Also its app without lang in user_metadata and using same App in Auth) to support both english and chinese language, But deployed as seperate url

Issue with reset password flow in Auth0

webAuth.changePassword({
connection: databaseConnection,
email: username
}

I cannot pass language parameter into changePassword function as that way I can customize Change Password Email template to be sent in chinese or english

Also customize lo/reset link with lang variable to different language for lo/reset
https://xxx/lo/reset?ticket=xxxxxxxxxxxxxxxxxx&lang=‘xx’

I guess someone did run into similar issue, please suggest How I pass lang variable to auth) email template

Hi @babu.golis , welcome to the community!

I’d recommend looking into using the New Universal Login Experience, which can read the Accept-Language HTTP header natively, provided it is one of the languages Auth0 supports (and has been enabled in your tenant’s settings):

You can further tweak what the text says using the Text Customisation API for each language you wish to support.

For the email templates, this isn’t currently possible ‘out of the box’ AFAIK, but you can use rules to store a user’s preferred language into their metadata, and then use liquid syntax to alter your email’s contents based on the user’s relevant metadata field:

1 Like

Let us know @babu.golis if you have any other questions!

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.