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?

Comments

khdahbi created an issue. See original summary.

yannickbaettig’s picture

yannickbaettig’s picture

Component: User interface » Code
Status: Active » Needs review
ysamoylenko’s picture

Version: 8.x-1.12 » 3.0.x-dev
Status: Needs review » Reviewed & tested by the community

The patch looks good to me. Thanks for implementing it.

ysamoylenko’s picture

Status: Reviewed & tested by the community » Fixed

The changes have been committed.

Status: Fixed » Closed (fixed)

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