# New option: auto-select language by HTTP header

**URL:** <https://meta.discourse.org/t/new-option-auto-select-language-by-http-header/35697>\
**Category:** Feature\
**Created:** [17. November 2015 um 14:34 UTC](https://meta.discourse.org/t/new-option-auto-select-language-by-http-header/35697 "2015-11-17T14:34:24Z")\
**Posts on this page:** 1\
**Showing post:** 7

<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:** [17. November 2015 um 21:16 UTC](https://meta.discourse.org/t/new-option-auto-select-language-by-http-header/35697/7 "2015-11-17T21:16:16Z")

</div>

> [@fbender](#):
>
> What about caching the last “known” language?

Another option would be to update the user’s locale preference from their HTTP headers on login.

I think the best/simplest solution for doing this in a plugin is to ask the user to confirm their language preferences from the locale select input. If you are concerned that your users won’t be able to find that in their preferences, it could be added to the header for users who have not yet confirmed their language.

---

_[View the full topic](https://meta.discourse.org/t/new-option-auto-select-language-by-http-header/35697)._
