From c12e4232cb9fc4b32e08d5aa2bca4927dfcbaeb4 Mon Sep 17 00:00:00 2001 From: Denys Vuika Date: Tue, 2 Oct 2018 16:15:03 +0100 Subject: [PATCH] remove i18 workaround that makes things worse --- demo-shell/src/app/app.component.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/demo-shell/src/app/app.component.ts b/demo-shell/src/app/app.component.ts index e268bad09c..d97ecb34b8 100644 --- a/demo-shell/src/app/app.component.ts +++ b/demo-shell/src/app/app.component.ts @@ -16,7 +16,7 @@ */ import { Component, ViewEncapsulation, OnInit } from '@angular/core'; -import { AuthenticationService, AlfrescoApiService, PageTitleService, TranslationService } from '@alfresco/adf-core'; +import { AuthenticationService, AlfrescoApiService, PageTitleService } from '@alfresco/adf-core'; import { Router } from '@angular/router'; @Component({ @@ -30,17 +30,10 @@ export class AppComponent implements OnInit { constructor(private pageTitleService: PageTitleService, private alfrescoApiService: AlfrescoApiService, private authenticationService: AuthenticationService, - private translationService: TranslationService, private router: Router) { } ngOnInit() { - - // workaround for https://github.com/ngx-translate/core/issues/575 - this.translationService.translate.getTranslation('en').subscribe(() => { - this.translationService.translate.setDefaultLang('en'); - }); - this.pageTitleService.setTitle('title'); this.alfrescoApiService.getInstance().on('error', (error) => {