In Drupal 8 it's possible to use separate interface and content languages. At the moment you're using:

$language = $this->languageManager->getCurrentLanguage();

This uses the interface language, because $type = LanguageInterface::TYPE_INTERFACE is the default argument.

https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Language!Language...

We need the content language:

$language = $this->languageManager->getCurrentLanguage(\Drupal\Core\Language\LanguageInterface::TYPE_CONTENT);

Greats from Germany
LeisureLarry

Comments

LeisureLarry created an issue. See original summary.

rphair’s picture

Assigned: Unassigned » rphair

  • rphair committed 0fd30ed on 8.x-1.x
    Issue #2827786 by LeisureLarry, rphair: Menu breadcrumb uses interface...
rphair’s picture

OK, so breadcrumbs are now displaying in content language rather than interface language. Hoping to get many people to test multilingual features before RC so have released version beta4 with this commit. Thanks for pointing this out & suggesting solution.

rphair’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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