I am trying to translate the breadcrumbs block in Drupal 9.3 via Twig Tweak I am loading the block in a twig like so:

{{ drupal_block('system_breadcrumb_block') }}

If I leave it like this, it only returns Home --> Page_name (In english) Even if it is another language selected (de). Is there some way to pass a language parameter to this function? Or somehow to indicate that it should be loading the page titles in the current language?


1 Answer 1


I wouldn't try to translate breadcrumbs in Twig. Blocks get the language from the global context and for breadcrumbs it's delegated to the breadcrumb builder which then gets it from the context.

For the most simple case, core path based breadcrumb builder and static page titles, Drupal is using interface translation and you find the translatable string in the translation table after you have used the page the first time.

If you have installed a breadcrumb module or are displaying dynamic page titles you have to add more details to the question.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.