Translated content, or root

I have a site in English and Ukrainian done with Hugo’s multilingual support. Menu links “Eng” and “Ukr” simply point at the other language´s front page.

What’s the most simple code to get url of the corresponding page of a specific language, or failing that, the front page of a specific language?

I.e. how do I do .IsTranslated for a specific language? Thanks for tips!

You can use the suggested linking method and then use {{ if .IsTranslated }}.

Thank you! I now found this example which I think I can apply.

1 Like