diff options
author | Ngô Ngọc Đức Huy <huyngo@disroot.org> | 2023-07-29 17:33:12 +0700 |
---|---|---|
committer | Ngô Ngọc Đức Huy <huyngo@disroot.org> | 2023-07-29 17:33:12 +0700 |
commit | 8261eed6f8c2aeb2488a481f1d89ab9c8ff3a119 (patch) | |
tree | 4dd87c1ca0f2ebc2a459395ee10a3547db3be106 /layouts/partials/post-language-switcher.html | |
parent | 5f84f18c24b3bf64768befad82823a59c26e65d5 (diff) | |
download | victor-8261eed6f8c2aeb2488a481f1d89ab9c8ff3a119.tar.gz |
Support multilingual
Diffstat (limited to 'layouts/partials/post-language-switcher.html')
-rw-r--r-- | layouts/partials/post-language-switcher.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/partials/post-language-switcher.html b/layouts/partials/post-language-switcher.html index 162cdf3..d5faf75 100644 --- a/layouts/partials/post-language-switcher.html +++ b/layouts/partials/post-language-switcher.html @@ -4,13 +4,13 @@ {{ range .AllTranslations }} {{ if eq .Lang $pageLang }} <li> - {{ upper .Lang }} + {{ .Language.LanguageName }} ({{ i18n "current" }}) </li> {{ else }} <li> - <a href="{{ .Permalink }}">{{ upper .Lang }}</a> + <a href="{{ .Permalink }}">{{ .Language.LanguageName }}</a> </li> {{ end }} {{ end }} </ul> -{{ end }} \ No newline at end of file +{{ end }} |