# Best way to implement localization/internationalization in auth0?

**URL:** <https://community.auth0.com/t/best-way-to-implement-localization-internationalization-in-auth0/12195>\
**Category:** Get Help\
**Created:** [June 8, 2018, 10:04am UTC](https://community.auth0.com/t/best-way-to-implement-localization-internationalization-in-auth0/12195 "2018-06-08T10:04:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jah](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jah/32/12805_2.png) [@jah](https://community.auth0.com/u/jah)\
**Post date:** [June 8, 2018, 10:04am UTC](https://community.auth0.com/t/best-way-to-implement-localization-internationalization-in-auth0/12195/1 "2018-06-08T10:04:36Z")

</div>

I am using custom ui instead of lock and for that I want to implement language support for all countries. SO what is the best way to implement that?

---

<div class="post-metadata">

**Author:** ![thijmen96](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/thijmen96/32/20356_2.png) [@thijmen96](https://community.auth0.com/u/thijmen96)\
**Post date:** [June 8, 2018, 7:56pm UTC](https://community.auth0.com/t/best-way-to-implement-localization-internationalization-in-auth0/12195/2 "2018-06-08T19:56:49Z")

</div>

I don’t know of a way to get Auth0 to do that for you server side, but there are a few ways to do it client side. Just a couple of random ideas:

- Get `window.navigator.language` with JavaScript and use that. If you only support select languages, you could compare it to an array of supported languages first and go from there.
- If your user has already picked a language on your app, you could send that info along as a URL parameter (like `lang=nl`) and pick that up with JavaScript on your hosted pages.
- If you want to get real fancy with this, you could do one or both of the above and store the chosen language using `localStorage`. So on a subsequent visit you could just load the chosen language from `localStorage` and use that.

Whatever you do, I think it would be a good idea to show a language selector on your hosted pages in case you guess wrong. That’s feels more like a last resort, though. Definitely try to prevent guessing wrong each time and making the user select the right language each time.

Final idea, since you’re using a custom design, is to not use text at all and say everything using icons. Very hard to get that right, though. Just writing the JavaScript might be quicker. 😅

Hope that was helpful!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [July 25, 2019, 1:52pm UTC](https://community.auth0.com/t/best-way-to-implement-localization-internationalization-in-auth0/12195/3 "2019-07-25T13:52:49Z")

</div>


