Skip to content

Fix langcode fatal

Nikolas Kopp requested to merge feature/fix-langcode-fatal into 1.x

See https://erdfisch.atlassian.net/browse/EDA-123 for context.

AddTranslation throws a fatal if it already has an existing translation.

We check for this condition before, so the translation isn't added.

This fixes the fatal, but there's still weird behavior with how translations work, that might be related.

F.e:

  1. Create a German Version of a node.
  2. Translate the node in english.
  3. If you edit any of the translations, the content will always be show in english and not display the translated values.

Merge request reports