This repository was archived by the owner on Nov 6, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/packages/core/localization/registry Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1- import type {
1+ import {
22 UmbLocalizationSetBase ,
33 UmbLocalizationDictionary ,
4- UmbLocalizationFlatDictionary ,
5- } from ' @umbraco-cms/backoffice/localization-api' ;
4+ UmbLocalizationFlatDictionary , UMB_DEFAULT_LOCALIZATION_CULTURE
5+ } from " @umbraco-cms/backoffice/localization-api" ;
66import { umbLocalizationManager } from '@umbraco-cms/backoffice/localization-api' ;
77import type { ManifestLocalization , UmbBackofficeExtensionRegistry } from '@umbraco-cms/backoffice/extension-registry' ;
88import { umbExtensionsRegistry } from '@umbraco-cms/backoffice/extension-registry' ;
@@ -36,7 +36,7 @@ export class UmbLocalizationRegistry {
3636 constructor ( extensionRegistry : UmbBackofficeExtensionRegistry ) {
3737 combineLatest ( [ this . currentLanguage , extensionRegistry . byType ( 'localization' ) ] ) . subscribe (
3838 async ( [ currentLanguage , extensions ] ) => {
39- const locale = new Intl . Locale ( currentLanguage ) ;
39+ const locale = new Intl . Locale ( ! ! currentLanguage ? currentLanguage : UMB_DEFAULT_LOCALIZATION_CULTURE ) ;
4040 const filteredExt = extensions . filter (
4141 ( ext ) =>
4242 ext . meta . culture . toLowerCase ( ) === locale . baseName . toLowerCase ( ) ||
You can’t perform that action at this time.
0 commit comments