about summary refs log tree commit diff
path: root/layouts/partials/language-switcher.html
blob: af29a789707e51e2ba12cfc645830cd545b875a2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
{{ i18n "choose language" }}
{{ $pageLang := .Page.Lang}}
<nav>
	{{ range .AllTranslations }}
		{{ if eq .Lang $pageLang }}
			<a>{{ .Language.LanguageName }} ({{ i18n "current" }})</a>
		{{ else }}
			<a href="{{ .Permalink }}">{{ .Language.LanguageName }}</a>
		{{ end }}
	{{ end }}
</nav>