Config export mess-up and suddenly use the non default language

Created on 27 December 2019, over 4 years ago
Updated 8 September 2023, 9 months ago

Hi,

Sometimes after a drupal upgrade the config act like if I had changed the default language. But I did not (default is still English).

Exporting the config will replace my EN strings with FR strings in the main config ending up destroying the EN strings. This append with views and fields configs. Those config files all have langcode: en.

Note that I'm using composer and drush, not the web interface.

The only fix I found is manually editing all the views config files, reverts the line with the string, and reimport the config.

πŸ› Bug report
Status

Active

Version

11.0 πŸ”₯

Component
ConfigΒ  β†’

Last updated about 1 month ago

Created by

πŸ‡¨πŸ‡­Switzerland gagarine

Live updates comments and jobs are added and updated live.
  • DrupalWTF

    Worse Than Failure. Approximates the unpleasant remark made by Drupal developers when they first encounter a particular (mis)feature.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡§πŸ‡¬Bulgaria pfrenssen Sofia

    Here is an issue for Drush that is related to this: https://github.com/drush-ops/drush/issues/4610

    A drush plugin has been linked that attempts to work around the bug: https://github.com/zaporylie/drush-current-language

  • I'm having the same problem as OP in Drupal 10.1

    Site default in 'english', with translations to 'dutch'. All views are langcode 'en'. And I'm migrating from Drupal 9.5.10 to 10.1. When I run "drush cim" and "drush cex" right after each other everything is ok. When I put a "drush updb" in between, all texts are changed to the dutch translation: all views that are "touched" by the drush updb exhibit the behaviour.

    The resulting views are still in langcode 'en', but all english text is changed to its dutch translation. The dutch translation then also disappears from the translations under "translations/nl".

    When I do a single export of a view using the GUI I also the changes, so I don't think it's all in drush. #22 doesn't fix it for me.

Production build 0.69.0 2024