From e93b37e8e8e924e2ef690fe81db9e9e7fab77345 Mon Sep 17 00:00:00 2001 From: Igor Kulikov Date: Tue, 22 Oct 2024 10:14:59 +0300 Subject: [PATCH] Minor fix for settings utils. --- ui-ngx/src/app/core/settings/settings.utils.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui-ngx/src/app/core/settings/settings.utils.ts b/ui-ngx/src/app/core/settings/settings.utils.ts index 3730878237..e5ec4e7182 100644 --- a/ui-ngx/src/app/core/settings/settings.utils.ts +++ b/ui-ngx/src/app/core/settings/settings.utils.ts @@ -21,6 +21,9 @@ import { Observable } from 'rxjs'; export function updateUserLang(translate: TranslateService, userLang: string, translations = env.supportedLangs): Observable { let targetLang = userLang; + if (!translations) { + translations = env.supportedLangs; + } if (!env.production) { console.log(`User lang: ${targetLang}`); }