Problem

With Drupal 8 it is now possible to install Drupal 8 in different languages, without having English installed. In many default configuration files, like menu.menu.tools.yml or blocks and similar there is a langcode: en set. But without English installed, these configurations are wrong, till saved once manually.

Proposal

TBD. - Somehow the langcode in all default config files has to be set to the default installation language.

Steps to reproduce:
Install D8 in another language with default profile (example german [de])
Check sites/default/files/config_*/active/menu.menu.tools.yml

Is:

id: tools
uuid: ...
label: Tools
description: 'Contains links for site visitors. Some modules add their links here.'
status: '1'
langcode: en

Should be:

id: tools
uuid: ...
label: Tools
description: 'Contains links for site visitors. Some modules add their links here.'
status: '1'
langcode: de

Comments

kfritsche’s picture

One solution would be to use site_default everywhere. We have to get sure that somewhere at least the site default setting is set, even with no language module.
With this approch we only need to set the default language after the installation once, instead of all places where it's used.
Does it have any down sides to have default language everywhere and to has this part directly in core?

kfritsche’s picture

Status: Active » Closed (works as designed)

After talking to Gabor its now clear to me.
Config files are supposed to be in english and this works as defined.
That in my case the config file was once langcode:de for a default configuration, is already described in #1936216: Configuration language selectors should have English even if English is not on the site .

Closing this as works as designed and duplicate for the other one.