diff --git a/src/app/cdk/platform-info/platform-info.service.ts b/src/app/cdk/platform-info/platform-info.service.ts index 631bdda840..51a61ba195 100644 --- a/src/app/cdk/platform-info/platform-info.service.ts +++ b/src/app/cdk/platform-info/platform-info.service.ts @@ -39,6 +39,7 @@ export class PlatformInfoService { reactivation: false, reactivationCode: '', summaryScreen: false, + locale: 'en', } platformSubject = new BehaviorSubject(this.platform) @@ -50,6 +51,7 @@ export class PlatformInfoService { _platform: Platform, @Inject(WINDOW) private window: Window ) { + this.platform.locale = locale this.platform.rtl = locale === 'ar' ? true : false this.platform.ltr = !this.platform.rtl this.platform.screenDirection = this.platform.rtl ? 'rtl' : 'ltr' @@ -235,6 +237,7 @@ export class PlatformInfoService { 0, reactivationCode: this.getReactivationCode(), summaryScreen: this.window.location.pathname.endsWith('/summary'), + locale: this.locale, } this.platformSubject.next(this.platform) return this.platformSubject.asObservable() diff --git a/src/app/cdk/platform-info/platform-info.type.ts b/src/app/cdk/platform-info/platform-info.type.ts index acb583110f..46c5eeeb10 100644 --- a/src/app/cdk/platform-info/platform-info.type.ts +++ b/src/app/cdk/platform-info/platform-info.type.ts @@ -24,4 +24,5 @@ export interface PlatformInfo { reactivation: boolean reactivationCode: string summaryScreen: boolean + locale: string } diff --git a/src/app/layout/header/header.component.html b/src/app/layout/header/header.component.html index 0a88aab000..c77311a3e8 100644 --- a/src/app/layout/header/header.component.html +++ b/src/app/layout/header/header.component.html @@ -18,9 +18,8 @@ role="link" class="orc-font-body-small" *ngIf="platform.columns12" - i18n="@@confirm-oauth-access.connectingresearchandresearchers" > - Connecting research and researchers + {{ labelLogo }}