From b62d1d84f9f656528fd03cbf93de749e3483c078 Mon Sep 17 00:00:00 2001 From: Yudong Jin Date: Tue, 10 Nov 2026 19:46:17 +0800 Subject: [PATCH] Fail the build when theme.language has no UI translations (#2028) The override templates silently used English copy for any unconfigured language. All six configured languages have entries, so a missing entry is a configuration error and now fails instead of publishing English UI text. Co-authored-by: Claude Opus 5.5 --- overrides/partials/i18n.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/overrides/partials/i18n.html b/overrides/partials/i18n.html index 795c38217..8bc06140e 100644 --- a/overrides/partials/i18n.html +++ b/overrides/partials/i18n.html @@ -44,4 +44,5 @@ } } %} {% set locale = config.theme.language | lower %} -{% set ui = translations[locale] | default(translations.en) %} +{# Every configured theme.language needs an entry; a missing one fails the build. #} +{% set ui = translations[locale] %}