diff --git a/src/app/core/locale/locale.service.ts b/src/app/core/locale/locale.service.ts index b7f9314a337..ade5c1f8649 100644 --- a/src/app/core/locale/locale.service.ts +++ b/src/app/core/locale/locale.service.ts @@ -19,7 +19,7 @@ export enum LANG_ORIGIN { UI, EPERSON, BROWSER -}; +} /** * Service to provide localization handler @@ -75,8 +75,9 @@ export class LocaleService { return obs$.pipe( take(1), flatMap(([isAuthenticated, isLoaded]) => { - let epersonLang$: Observable = observableOf([]); - if (isAuthenticated && isLoaded) { + // TODO to enabled again when https://github.com/DSpace/dspace-angular/issues/739 will be resolved + const epersonLang$: Observable = observableOf([]); +/* if (isAuthenticated && isLoaded) { epersonLang$ = this.authService.getAuthenticatedUserFromStore().pipe( take(1), map((eperson) => { @@ -91,7 +92,7 @@ export class LocaleService { return languages; }) ); - } + }*/ return epersonLang$.pipe( map((epersonLang: string[]) => { const languages: string[] = [];