Hello. I want to check which languages the current page has.
I know the current language and I have function {{ .Translations }}
Now I have the code
{{ $lang := .Lang }}
{{ $current_url := .URL }}
{{ range $.Site.Home.AllTranslations }}
{{ if or (eq $lang .Language.LanguageName) (in_array.Language.LanguageName, .Translations) }}
<a{{ if eq $lang .Language.LanguageName }} class="active_l"{{ end }} href="{{ .LanguagePrefix }}{{ $current_url }}">{{ .Lang }}</a>
{{ end }}
{{ end }}
How can I change this fragment ‘in_array.Language.LanguageName, .Translations)’ ?