# 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:** [November 17, 2015, 2:34pm 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:** 2

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [November 17, 2015, 2:36pm UTC](https://meta.discourse.org/t/new-option-auto-select-language-by-http-header/35697/2 "2015-11-17T14:36:19Z")

</div>

This sort of exists.

> [@Variable default interface language for new users](https://meta.discourse.org/t/variable-default-interface-language-for-new-users/33741/14):
>
> I’ve made a plugin for this. [GitHub - scossar/accept-language: A Discourse plugin to set the language for non-logged-in users · GitHub](https://github.com/scossar/accept-language) The logic is that if the site is visited by a non-logged-in user and the site allows user-locales, the locale is set from the request headers. If there is a logged-in user the locale is set from the user’s effective locale. If there is no logged-in user and user locales are disabled, the locale is set from the site default locale. It uses the http\_accept\_langu…

---

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