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
Comment #2
rphair commentedComment #4
rphair commentedOK, 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.
Comment #5
rphair commented