mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
remove i18 workaround that makes things worse
This commit is contained in:
parent
0ed5b2d5de
commit
c12e4232cb
@ -16,7 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { Component, ViewEncapsulation, OnInit } from '@angular/core';
|
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';
|
import { Router } from '@angular/router';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
@ -30,17 +30,10 @@ export class AppComponent implements OnInit {
|
|||||||
constructor(private pageTitleService: PageTitleService,
|
constructor(private pageTitleService: PageTitleService,
|
||||||
private alfrescoApiService: AlfrescoApiService,
|
private alfrescoApiService: AlfrescoApiService,
|
||||||
private authenticationService: AuthenticationService,
|
private authenticationService: AuthenticationService,
|
||||||
private translationService: TranslationService,
|
|
||||||
private router: Router) {
|
private router: Router) {
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
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.pageTitleService.setTitle('title');
|
||||||
|
|
||||||
this.alfrescoApiService.getInstance().on('error', (error) => {
|
this.alfrescoApiService.getInstance().on('error', (error) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user