- Issue created by @missvengerberg
Hello, I am still not sure if this is a bug or just the normal behaviour of Drupal.
I have a multilanguage site with Content and Config translation modules enabled. The default language of the site is Icelandic and the secondary language is English. I've always heard the langcode of config files should match the langcode of the default language.
But at the moment, I have a mix of langcodes in my config folder. If I'm using English language in the UI and I just create a new field, the config exported has "en" langcode and not "is".
I'd like to understand why it works this way if this is not a bug. I'm confused, since locale module forces configuration to be updated to the default language when a new module is installed. I think configs should be created in the site default language code and translated to any other language using config translation. The current user interface language should not matter and can produce errors like this:
- Install a clean 12.2.* Drupal and set language "Icelandic" (Γslenka). This is going to be the default language.
- Once installed, enable language English.
- Enable module Config translation and Content translation.
- Export configuration.
- Change the UI language to English and go to page /en/admin/structure/types/add and create a new node type.
- Export configuration.
- You will see the new created node.type.x has "en" langcode and not "is".
Thanks in advance!
Active
10.2 β¨
Last updated