We usually build non-English-language Drupal sites for our clients. The site usually ends up to have German as the default language for the production site. In local environments, we set the site to use English as the default language.

Now in Drupal 8, we are looking to do the same thing. I have a settings.local.php with which I try to override some config variables. I succeed with things like site name or preprocess css and preprocess js. I do not succeed with default_langcode.

Language module is enabled and default language in the UI is set to German.

Comments

aschiwiCreditAttribution: aschiwi at undpaul commented 16 October 2015 at 10:46

Status:

Active

» Closed (works as designed)

Worked this out thanks to webflo and dawehner. You're not supposed to override this setting. Basically, you set the interface language to what you want (probably English) and then the default language can be whatever you want.

/admin/config/regional/language/detection

Also choose the checkbox "Customize Content language detection to differ from Interface text language detection settings" on /admin/config/regional/language/detection. That should allow you to do what I explained above.