fix(sidebar): translation selector - avoid cast per PR #950 (#961)

avoid cast per PR #950
This commit is contained in:
James McMurry 2024-03-02 16:16:27 -06:00 committed by GitHub
parent 405e84291a
commit 9bb3165ff0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -77,7 +77,7 @@
<div class="menu-bottom-section"> <div class="menu-bottom-section">
{{- $currentLanguageCode := .Language.Lang -}} {{- $currentLanguageCode := .Language.Lang -}}
{{ if ( compare.Gt .Site.Home.AllTranslations 1 ) }} {{ if ( compare.Gt .Site.Home.AllTranslations.Len 1 ) }}
{{ with .Site.Home.AllTranslations }} {{ with .Site.Home.AllTranslations }}
<li id="i18n-switch"> <li id="i18n-switch">
{{ partial "helper/icon" "language" }} {{ partial "helper/icon" "language" }}