Event types are displayed in the default language

Created on 31 July 2024, 4 months ago
Updated 27 August 2024, 3 months ago

Problem/Motivation

As a user I should see the correct translations of event type terms everywhere on the site.

For examples, we have various event type terms configured on our platform. These terms also have the correct translations configured (for French, Italian) in the backend. Yet, in some parts of the site (e.g. stream, /community-events, etc.), these translations do not appear. French users see the original German strings.

Proposed resolution


in social_event_type_preprocess_node(){
use:
....
 $event_type = \Drupal::service('entity.repository')->getTranslationFromContext($event_type);
....
}
πŸ› Bug report
Status

Fixed

Version

13.0

Component

Code (back-end)

Created by

πŸ‡ΊπŸ‡¦Ukraine SV

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

Comments & Activities

Production build 0.71.5 2024