justice/layouts/partials/language-picker.html
2023-12-27 20:47:48 -05:00

3 lines
No EOL
258 B
HTML

<!-- https://discourse.gohugo.io/t/language-switcher-in-menu/11570/5 -->
{{ range .Site.Languages }} {{ if eq . $.Site.Language }} {{ else }} {{ range $.Translations }}
<a href="{{ .Permalink }}">{{ .Language.LanguageName }}</a> {{ end }} {{ end }} {{ end }}