Referenced node translations are not being loaded

Created on 10 November 2023, over 1 year ago
Updated 13 November 2023, over 1 year ago

Problem/Motivation

Inline Entity Form has been supporting translations for a while now. Translation support was added in #2494959: Add translation integration. Seems like the functionality is not working in the 2.0.x-branch anymore. Referenced nodes are always displayed in their original language instead.

Steps to reproduce

  1. Install Drupal 10 with Inline Entity Form 2.0.x.
  2. Enable Inline Entity Form, Configuration Translation, Content Translation, Interface Translation, and Language modules.
  3. Add another language in addition with the default English.
  4. Make sure to have 2 content types.
  5. Configure first content type (X) to have entity reference field referencing second content type Y. Form display should utilize Inline Entity Form complex widget.
  6. Configure both content types as translatable. Make sure not to set the entity reference between content types translatable.
  7. Create piece of content type X with the default language and fill in content type Y with IEF.
  8. Navigate to content Y and translate it.
  9. Navigate back to X and translate it.
  10. Navigate to editing translation of X. Content Y is being displayed in original language even it has translation.

Proposed resolution

Load referenced node translations into Inline Entity Form.

Remaining tasks

Implement loading translations into Inline Entity Form.

User interface changes

None.

API changes

None.

Data model changes

None.

🐛 Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

🇫🇮Finland pesonenv

Live updates comments and jobs are added and updated live.
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.

Production build 0.71.5 2024