Link to current page in different locale

I’m using i18n with the locale de mounted at root. In my menu I want to have a link to switch to the current page in the other locale, if it (the page) exists. Is there a simple helper to do this?

Currently I’m parsing current_resource.source_file to check if the page exists in a different locale and generate the URL but it feels very dirty…

1 Like