Get the current translation within the wrapped field output

Created on 28 February 2023, over 1 year ago
Updated 18 June 2024, 10 days ago

Problem/Motivation

When using the field formatter on untranslatable enitity reference fields with translatable target entities, the source translation is always used when referencing the target entity.

Steps to reproduce

  • Within a multilingual setup, create an entity that is translatable
  • Add a reference field that is not translatable with translatable target entities (such as taxonomy terms)
  • Configure the field formatter individually to render the field of the referenced entity selectively
  • Add a node based on the entity and translate this, do the same for the referenced taxonomy term(s)
  • When switching to the non default site language, while node translatable fields do get translated, referenced taxonomy terms will stick to the default language

Proposed resolution

Get the translated entity depending on the given context (langcode) within the wrapped field output.

Remaining tasks

Review and merge the patch.

User interface changes

/

API changes

/

Data model changes

/

πŸ› Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium ΓΈkse

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024