Minor fix for settings utils.
This commit is contained in:
parent
40c5f9d66d
commit
e93b37e8e8
@ -21,6 +21,9 @@ import { Observable } from 'rxjs';
|
||||
|
||||
export function updateUserLang(translate: TranslateService, userLang: string, translations = env.supportedLangs): Observable<any> {
|
||||
let targetLang = userLang;
|
||||
if (!translations) {
|
||||
translations = env.supportedLangs;
|
||||
}
|
||||
if (!env.production) {
|
||||
console.log(`User lang: ${targetLang}`);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user