Auth0-React internationalization

Hello everyone,

version → “@auth0/auth0-react”: “^2.2.0”

I’m trying to add internationalization so I’ve implemented this function

onClick={() => loginWithRedirect({authorizationParams: {ui_locales: "it",},})}

Or this:

<Auth0Provider
          domain={process.env.NEXT_PUBLIC_AUTH0_DOMAIN}
          clientId={process.env.NEXT_PUBLIC_AUTH0_OAUTH_CLIENT_ID}
          authorizationParams={{
            redirect_uri: url,
            ui_locales:"it",
          }}
        >
           {children}
        </Auth0Provider>

Also using “@auth0/nextjs-auth0”: “^3.0.1”

import { handleAuth, handleLogin } from '@auth0/nextjs-auth0';

export default handleAuth({
  login: async (req, res) => {
    try {
      await handleLogin(req, res, {
        authorizationParams: { ui_locales: "it" }
      });
    } catch (error) {
      console.error(error);
    }
  }
});

unfortunately, the UI is still in ENG, is there anything I’m missing on the current version?

I really appreciate any help you can provide.

Kyle

Hi @kyle.morena,

Welcome to the Auth0 Community!

Can you confirm you are using New Universal Login (feel free to post a screenshot if you are unsure)?

Also, have you followed the direction in this doc? Including the section on setting the supported languages?

Thank you!

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