# Internationalization not working in new universal login - Angular

**URL:** <https://community.auth0.com/t/internationalization-not-working-in-new-universal-login-angular/101410>\
**Category:** Get Help\
**Tags:** configuration, application\
**Created:** [February 27, 2023, 8:34pm UTC](https://community.auth0.com/t/internationalization-not-working-in-new-universal-login-angular/101410 "2023-02-27T20:34:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![vuscan.marius](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vuscan.marius/32/40937_2.png) [@vuscan.marius](https://community.auth0.com/u/vuscan.marius)\
**Post date:** [February 27, 2023, 8:34pm UTC](https://community.auth0.com/t/internationalization-not-working-in-new-universal-login-angular/101410/1 "2023-02-27T20:34:43Z")

</div>

Hello,

I am struggling with setting up the internationalization, more specifically, translating to Romanian.

I am using the [auth0/auth0-angular](https://github.com/auth0/auth0-angular) package, and Angular v15.1.4

My setup looks like this:

 ![image](https://global.discourse-cdn.com/auth0/original/3X/f/5/f5841397b33fe0cb456979b797e9d69488dcb018.png)  
 ![image](https://global.discourse-cdn.com/auth0/original/3X/3/6/36f12bd42901e3a26610683d9674da08f2732655.png)

and also included the ui\_locales property when calling loginWithRedirect:  
`this.auth.loginWithRedirect({ui_locales: 'ro'} as RedirectLoginOptions<AppState>);`

Still, when I am redirected to the login page, I get the content in English.

I read a lot of posts, and questions, but nothing helped. What am I doing wrong?

Thank you,  
Marius Vuscan

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [February 28, 2023, 1:57am UTC](https://community.auth0.com/t/internationalization-not-working-in-new-universal-login-angular/101410/3 "2023-02-28T01:57:42Z")

</div>

Hi @vuscan.marius,

Thanks for reaching out to the Auth0 Community!

I understand you have issues passing in the `ui_locales` query parameter when using the `loginWithRedirect` method.

Just to clarify, could you confirm if you are calling the function similar to the following?

```auto
loginWithRedirect() {
  this.auth.loginWithRedirect({
    ui_locales: 'ro'
  });
}

```

Doing so should call the `/authorize` endpoint with the `ui_locales` query parameter appended. For example:

```auto
https://{yourDomain}/authorize?
    response_type=code&
    client_id={yourClientId}&
    redirect_uri={https://yourApp/callback}&
    scope={scope}&
    state={state}&
    ui_locales=ro

```

If you continue having issues, could you please [capture these events in a HAR file](https://auth0.com/docs/troubleshoot/troubleshooting-tools/generate-and-analyze-har-files) and send them to me via DM?

I look forward to your reply.

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![vuscan.marius](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vuscan.marius/32/40937_2.png) [@vuscan.marius](https://community.auth0.com/u/vuscan.marius)\
**Post date:** [February 28, 2023, 2:01pm UTC](https://community.auth0.com/t/internationalization-not-working-in-new-universal-login-angular/101410/4 "2023-02-28T14:01:25Z")

</div>

Yes, I am calling the loginWithRedirect function, in the same way as in your code snipped.

It seems that the ui\_locales parameter is not present in the request.

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [March 7, 2023, 11:03pm UTC](https://community.auth0.com/t/internationalization-not-working-in-new-universal-login-angular/101410/5 "2023-03-07T23:03:00Z")

</div>

wHi @vuscan.marius,

Thank you for your response.

After collaborating via direct messages, we were able to get it to work with the following code:

```auto
this.auth.loginWithRedirect({ 
  screen_hint: 'signup', 
  authorizationParams: { ui_locales: 'ro' } } as RedirectLoginOptions<AppState>);

```

Please reach out again if you have any further questions. I’d be happy to help!

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 21, 2023, 11:03pm UTC](https://community.auth0.com/t/internationalization-not-working-in-new-universal-login-angular/101410/6 "2023-03-21T23:03:56Z")

</div>

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