Translate filter tags

Created on 3 July 2020, almost 4 years ago
Updated 13 May 2023, about 1 year ago

Hi,

I've installed Mixitup Views module to my Drupal installation. I have tried to show the filter tags by the current user interface language, but it's just showing in main site language, although I have translated the taxonomy terms.
I found some patch and it seems works well: checking if the term has translation from the current context:

$translated_term = \Drupal::service('entity.repository')->getTranslationFromContext($term, $language);
$termList[$tid] = $translated_term->getName();

Can you look if there's another way to do that?

πŸ’¬ Support request
Status

Fixed

Version

3.0

Component

Code

Created by

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.69.0 2024