# How to internationalize the Auth0 Hosted Login page?

**URL:** <https://community.auth0.com/t/how-to-internationalize-the-auth0-hosted-login-page/97063>\
**Category:** Get Help\
**Tags:** classic-universal-login-experience, login-experience\
**Created:** [December 25, 2022, 8:09am UTC](https://community.auth0.com/t/how-to-internationalize-the-auth0-hosted-login-page/97063 "2022-12-25T08:09:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![benjamin203](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/benjamin203/32/38437_2.png) [@benjamin203](https://community.auth0.com/u/benjamin203)\
**Post date:** [December 25, 2022, 8:09am UTC](https://community.auth0.com/t/how-to-internationalize-the-auth0-hosted-login-page/97063/1 "2022-12-25T08:09:28Z")

</div>

I am using just the classic universal login experience and I have english and japanese activated in the tenant settings. How do I make it so the login page is automatically translated based on the users location?

Additionally, I would also like to translate the signUpTerms that I have added.

I have found no guide on this.

---

<div class="post-metadata">

**Author:** ![SaqibHussain](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/saqibhussain/32/42924_2.png) [@SaqibHussain](https://community.auth0.com/u/SaqibHussain)\
**Post date:** [December 26, 2022, 4:10pm UTC](https://community.auth0.com/t/how-to-internationalize-the-auth0-hosted-login-page/97063/2 "2022-12-26T16:10:46Z")

</div>

Hi @benjamin203

The documentation for internationalising Classic Universal Login is here [https://auth0.com/docs/customize/internationalization-and-localization/lock-internationalization](https://auth0.com/docs/customize/internationalization-and-localization/lock-internationalization)

Essentially all you need to do it set your language as part of the options that get initialised with Lock e.g for Spanish:

```auto
// Select a supported language
var options = {
  language: 'es'
};

// Initiating our Auth0Lock
var lock = new Auth0Lock(
  '{yourClientId}',
  '{yourDomain}',
  options
);

```

To get the browser language you might something like:

```auto
...
 language: navigator.language,
...

```

Look out for the supported language types as documented here: [https://auth0.com/docs/customize/internationalization-and-localization/lock-internationalization#provided-languages](https://auth0.com/docs/customize/internationalization-and-localization/lock-internationalization#provided-languages)

For Spanish for example, the browser may return es-ES and may not get a match with our supported language type in which case may need to to do some mapping e.g:

```auto
if (navigator.language === "es-ES") {
  language= "es"
}
else {
  language = navigator.language
}

```

Hopefully you’ll be able to get this to work for you.

Warm regards.

---

<div class="post-metadata">

**Author:** ![benjamin203](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/benjamin203/32/38437_2.png) [@benjamin203](https://community.auth0.com/u/benjamin203)\
**Post date:** [December 26, 2022, 5:08pm UTC](https://community.auth0.com/t/how-to-internationalize-the-auth0-hosted-login-page/97063/4 "2022-12-26T17:08:41Z")

</div>

@SaqibHussain Can I list multiple languages?

for example:

var options = {  
language: ‘es, de, ja’  
};

---

<div class="post-metadata">

**Author:** ![benjamin203](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/benjamin203/32/38437_2.png) [@benjamin203](https://community.auth0.com/u/benjamin203)\
**Post date:** [December 26, 2022, 5:09pm UTC](https://community.auth0.com/t/how-to-internationalize-the-auth0-hosted-login-page/97063/5 "2022-12-26T17:09:13Z")

</div>

@SaqibHussain

How do I translate the signUpTerms?

---

<div class="post-metadata">

**Author:** ![SaqibHussain](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/saqibhussain/32/42924_2.png) [@SaqibHussain](https://community.auth0.com/u/SaqibHussain)\
**Post date:** [December 26, 2022, 9:05pm UTC](https://community.auth0.com/t/how-to-internationalize-the-auth0-hosted-login-page/97063/6 "2022-12-26T21:05:46Z")

</div>

Hi @benjamin203

The documentation does not suggest you can pass in multiple languages so I wouldn’t have thought so.

To translate the signUpTerms I believe you would need to provide the translations yourself. You could for example specify your own languageBaseUrl to point to a set of dictionaries that you host, which you can customise fully for each language you wish to support and provide translations for whatever you need.

Warm regards.

---

<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:** [January 24, 2023, 5:04pm UTC](https://community.auth0.com/t/how-to-internationalize-the-auth0-hosted-login-page/97063/7 "2023-01-24T17:04:42Z")

</div>

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