Change language of password reset custom page in Classic experience
Sep 10, 2025
Overview
Cause
Solution
- Have the user's metadata with the desired info (e.g. "lang": "ja" for Japanese)
- Change the email template <a href="{{ url }}> for <a href="{{ url }}{{user.user_metadata.lang}}">
- Change the JS in the password reset custom page as it follows:
let lang = document.location.hash.slice(1);
/**
Example of fallback to US if no translations found for language
*/
const dict = translations.hasOwnProperty(lang) ? translations[lang] : translations['en-US'];
new Auth0ChangePassword({
...
dict,
});
This procedure sends the user's metadata via the link in the change password email template and delivers the information to the Classic password reset page.
Sources:
- https://community.auth0.com/t/universal-login-password-reset-unable-to-get-users-language/39392
- https://community.auth0.com/t/set-the-language-of-the-change-password-widget-in-the-classic-universal-login-experience/101499
- https://auth0.com/docs/customize/universal-login-pages/customize-password-reset-page#custom-variables