When filtering by language and searching in the non-default language results in a result set where entities are still being rendered in the default language and not the requested language.

Steps to reproduce:

- enable content translation for an index content type
- translate a couple of entities
- set fac to filter by language
- switch to a non-default language and search for a translated entity
- observe that the entity is rendered in the default language of the site

Attached patch passes the requested langcode to the render method.

Comments

Heine created an issue. See original summary.

  • Heine authored 13da482 on 8.x-1.x
    Issue #2936155 by Heine: Render entitites in the requested language
    
marty2081’s picture

Status: Needs review » Fixed

Thanks for the issue report and providing a patch. Committed to dev.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.