{{ $lang := .Page.Language.Lang }} {{ if eq $lang "en" }} {{/* If we are in English, we search avaliable translations and add them hidden. The javascript will show the relevant ones using the two first letters. Ex. if the browser is in "pt-pt", it will show the messages for "pt-pt" and "pt-br" */}} {{ range .Page.Translations }} {{ if and (ne "en" .Language.Lang) ( not .Page.Params.untranslated ) }}
{{ end }} {{ end }} {{ end }}