From d5755ad804914bbd6166c6267689a40e7e565045 Mon Sep 17 00:00:00 2001 From: Denys Vuika Date: Tue, 2 Oct 2018 16:17:40 +0100 Subject: [PATCH] remove i18n workaround --- src/app/app.component.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 884c4cc6e..266125bbf 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -29,8 +29,7 @@ import { AuthenticationService, FileUploadErrorEvent, PageTitleService, - UploadService, - TranslationService + UploadService } from '@alfresco/adf-core'; import { Component, OnInit } from '@angular/core'; import { ActivatedRoute, NavigationEnd, Router } from '@angular/router'; @@ -69,17 +68,11 @@ export class AppComponent implements OnInit { private authenticationService: AuthenticationService, private uploadService: UploadService, private extensions: AppExtensionService, - private translationService: TranslationService, private contentApi: ContentApiService, private appService: AppService ) {} ngOnInit() { - // workaround for https://github.com/ngx-translate/core/issues/575 - this.translationService.translate.getTranslation('en').subscribe(() => { - this.translationService.translate.setDefaultLang('en'); - }); - this.alfrescoApiService.getInstance().on('error', error => { if (error.status === 401) { if (!this.authenticationService.isLoggedIn()) {