From 8a2f1bc233ce40fcf376d92696839af28075e142 Mon Sep 17 00:00:00 2001 From: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com> Date: Tue, 23 Sep 2025 11:55:56 +0200 Subject: [PATCH] Localization: Fixes an issue where the fallback localization was not available after changing DefaultUILanguage (fixes #20216) (#20230) fix: always load the default/fallback language code so it is available --- .../core/localization/registry/localization.registry.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/localization/registry/localization.registry.ts b/src/Umbraco.Web.UI.Client/src/packages/core/localization/registry/localization.registry.ts index a51d3651b8..15d6b5349c 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/localization/registry/localization.registry.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/localization/registry/localization.registry.ts @@ -118,6 +118,9 @@ export class UmbLocalizationRegistry { ) // Subscribe to the observable to trigger the loading of translations .subscribe(); + + // Always register the fallback language (en) to ensure there is always at least one language available + this.loadLanguage(UMB_DEFAULT_LOCALIZATION_CULTURE); } #loadExtension = async (extension: ManifestLocalization) => {