Get translation of page.title for present page


#1

Scenario:
On my English version of a page I would like to insert the German translation of the ‘page.title’ (or any other header information) dynamicaly via Twig variable.

How can I access the ‘page.de.md’ header information while being on the English version?


#2

Found a solution myself:

To access a certian translation you would do something like this: {{ page.title|tl([‘de’]) }}

Hope that helps anybody.


#3

The above mentioned solution is not working. Still looking for something working … :o/