From 3cc44bc481ffb27bf3e8d4c2caed2a9d80033264 Mon Sep 17 00:00:00 2001 From: Christian Schabetsberger Date: Sat, 9 May 2026 13:49:17 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20breaking=20change=20LanguageCode=20?= =?UTF-8?q?=E2=86=92=20Locale?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layouts/_default/headless-cms.html | 4 ++-- layouts/partials/headless-cms/functions/locale.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/layouts/_default/headless-cms.html b/layouts/_default/headless-cms.html index c89b44c..f55159c 100644 --- a/layouts/_default/headless-cms.html +++ b/layouts/_default/headless-cms.html @@ -1,5 +1,5 @@ - + @@ -42,7 +42,7 @@ {{ else }} {{ errorf "Unable to .GetRemote %q" $url_sveltia }} {{ end }} - + {{ else }}

Error

diff --git a/layouts/partials/headless-cms/functions/locale.html b/layouts/partials/headless-cms/functions/locale.html index 58dda6c..0758642 100644 --- a/layouts/partials/headless-cms/functions/locale.html +++ b/layouts/partials/headless-cms/functions/locale.html @@ -5,7 +5,7 @@ "zh-hk" "zh_Hant" "zh-tw" "zh_Hant" }} -{{- $locale := site.Language.LanguageCode }} +{{- $locale := site.Language.Locale }} {{- with index $locales $locale }} {{- $locale = . }} {{- end }}