chore: linting

This commit is contained in:
Jacob Overgaard
2024-07-26 11:44:47 +02:00
parent 2b11b8b0a1
commit 8b0e12ee10

View File

@@ -36,7 +36,7 @@ export class UmbLocalizationRegistry {
constructor(extensionRegistry: UmbBackofficeExtensionRegistry) {
combineLatest([this.currentLanguage, extensionRegistry.byType('localization')]).subscribe(
async ([currentLanguage, extensions]) => {
const locale = new Intl.Locale(!!currentLanguage ? currentLanguage : UMB_DEFAULT_LOCALIZATION_CULTURE);
const locale = new Intl.Locale(currentLanguage ? currentLanguage : UMB_DEFAULT_LOCALIZATION_CULTURE);
const filteredExt = extensions.filter(
(ext) =>
ext.meta.culture.toLowerCase() === locale.baseName.toLowerCase() ||