# Detecting user language

**URL:** <https://meta.discourse.org/t/detecting-user-language/40505>\
**Category:** Product Support\
**Created:** [3 במרץ,‏ 2016,‏ 2:06pm UTC](https://meta.discourse.org/t/detecting-user-language/40505 "2016-03-03T14:06:51Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
**Post date:** [3 במרץ,‏ 2016,‏ 4:36pm UTC](https://meta.discourse.org/t/detecting-user-language/40505/5 "2016-03-03T16:36:18Z")

</div>

It sets the locale. The UI is then automatically translated by Discourse.

What is the attribute that you would like to be adding?

edit - I see 🙂 - yes that would be possible.

> [@gberaudo](#):
>
> The default language is availabe in the lang attribute of the html tag.Would it be possible to add a custom attribute with the chosen language?

---

_[View the full topic](https://meta.discourse.org/t/detecting-user-language/40505)._
