Translation source language resets to English on import

Created on 15 December 2023, 12 months ago
Updated 23 August 2024, 3 months ago

Problem/Motivation

We have a bilingual setup with English as the site default language but German as the primary content language. Default content consists of nodes, terms, and menu links.

We noticed some confusion amongst our editors trying to edit untranslatable fields in the German translation, therefore we decided to swap the default content translations and make the German version the entities' default language.

Looking into the exported yml files, language settings are as intended:

  • default_langcode: de
  • content_translation_source: de

However, after import during site-install, all imported entities are set to English.

Translated entities or untranslated non-English entities - no difference.

I counter-tested with the default language set to German on site-install which results in imported content in German. This makes me wonder if the translation source is being assumed instead of being explicitely handled. Possible?

Steps to reproduce

  1. Install a second language (but leave English as default)
  2. Create a node in the secondary language
  3. Export
  4. Delete that node
  5. Import
🐛 Bug report
Status

Needs work

Version

2.0

Component

Code

Created by

🇩🇪Germany hexabinaer Berlin, Germany

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024