# Missing setting: default locale

**URL:** https://meta.discourse.org/t/missing-setting-default-locale/40686
**Category:** Support
**Created:** [March 7, 2016, 10:17am UTC](https://meta.discourse.org/t/missing-setting-default-locale/40686 "2016-03-07T10:17:01Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![terraboss](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/terraboss/32/381157_2.png) [@terraboss](https://meta.discourse.org/u/terraboss)
#### Post date: [March 7, 2016, 10:17am UTC](https://meta.discourse.org/t/missing-setting-default-locale/40686/1 "2016-03-07T10:17:01Z")

</div>

Since the latest updates, we’ve noticed that our default site language has changed from German to English. The global site setting “default locale” isn’t available any more.

 ![](https://global.discourse-cdn.com/meta/original/3X/4/0/40585e5d066e00ca1a1d2ee118303874badabde6.png)

 ![](https://global.discourse-cdn.com/meta/original/3X/4/f/4f9ec21a63f52f373f1716c1223b57d442ced591.png)

How can change the site language again?

Thanks,  
M

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [March 7, 2016, 10:23am UTC](https://meta.discourse.org/t/missing-setting-default-locale/40686/2 "2016-03-07T10:23:08Z")

</div>

@simon is this related to your recent change somehow?

---

<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: [March 7, 2016, 5:32pm UTC](https://meta.discourse.org/t/missing-setting-default-locale/40686/3 "2016-03-07T17:32:20Z")

</div>

> [@sam](#):
>
> is this related to your recent change somehow?

Not in a way that I’m seeing, but I’ll keep looking. @terraboss are there any errors in the javascript console?

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [March 7, 2016, 5:53pm UTC](https://meta.discourse.org/t/missing-setting-default-locale/40686/4 "2016-03-07T17:53:33Z")

</div>

Did you set `DISCOURSE_DEFAULT_LOCALE` in `app.yml`?  
If I’m not mistaken the default locale can’t be changed when it’s set via environment variable.

---

<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: [March 7, 2016, 6:28pm UTC](https://meta.discourse.org/t/missing-setting-default-locale/40686/5 "2016-03-07T18:28:50Z")

</div>

That’s the only way I’ve been able to reproduce this.

---

<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: [March 7, 2016, 7:19pm UTC](https://meta.discourse.org/t/missing-setting-default-locale/40686/6 "2016-03-07T19:19:01Z")

</div>

> [@terraboss](#):
>
> How can change the site language again?

Can you take a look at your `app.yml` file and make sure that this line is commented out?

# DISCOURSE\_DEFAULT\_LOCALE: en

If it is not commented out, try commenting it out and running `launcher rebuild app`.

---

<div class="post-metadata">

### Author: ![terraboss](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/terraboss/32/381157_2.png) [@terraboss](https://meta.discourse.org/u/terraboss)
#### Post date: [March 7, 2016, 8:17pm UTC](https://meta.discourse.org/t/missing-setting-default-locale/40686/7 "2016-03-07T20:17:20Z")

</div>

> [@simon](#):
>
> `# DISCOURSE_DEFAULT_LOCALE: en`
> 
> If it is not commented out, try commenting it out and running launcher rebuild app.

Originally, I’ve set `DISCOURSE_DEFAULT_LOCALE: de`;

Commenting it out, brought me the setting back again. Unfortunately, telling Discourse that I wanna use German as default language didn’t show any effect. That means, the logged in user has it’s correct language but not someone who isn’t logged in. These people still have to deal with English.

Any clue why?

---

<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: [March 7, 2016, 8:22pm UTC](https://meta.discourse.org/t/missing-setting-default-locale/40686/8 "2016-03-07T20:22:12Z")

</div>

What’s the url for your site?

> [@terraboss](#):
>
> Any clue why?

I think it’s because the locale for non-logged in users is now being set by the HTTP accept-language headers for sites that allow users to select their locale.

---

<div class="post-metadata">

### Author: ![terraboss](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/terraboss/32/381157_2.png) [@terraboss](https://meta.discourse.org/u/terraboss)
#### Post date: [March 7, 2016, 8:30pm UTC](https://meta.discourse.org/t/missing-setting-default-locale/40686/9 "2016-03-07T20:30:09Z")

</div>

> [@simon](#):
>
> I think it’s because the locale for non-logged in users is now being set by the HTTP accept-language headers for sites that allow users to select their locale.

haha, thanks, good to know ❤

My default system language is English for a couple of reasons 😉

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [June 8, 2024, 12:45pm UTC](https://meta.discourse.org/t/missing-setting-default-locale/40686/10 "2024-06-08T12:45:49Z")

</div>

This topic was automatically closed after 3015 days. New replies are no longer allowed.
