Ajout des traductions
This commit is contained in:
@@ -27,10 +27,12 @@ export class DefaultComponent implements OnInit {
|
||||
this.authenticationService.alwaysLogin();
|
||||
|
||||
this.putToCacheRefDatas().subscribe(() => { console.log("Push to cache the referentiel datas"); });
|
||||
|
||||
this.translateService.get("Home").subscribe(
|
||||
data => { this.serviceComm.UpdatedComponentTitle(data); }
|
||||
);
|
||||
this.updateTitle();
|
||||
this.serviceComm.forceTranslateTitle.subscribe((data)=> {
|
||||
if (data === true){
|
||||
this.updateTitle();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private putToCacheRefDatas(): Observable<any[]> {
|
||||
@@ -41,4 +43,10 @@ export class DefaultComponent implements OnInit {
|
||||
|
||||
return forkJoin([aircraftResp, jumpTypeResp, dzResp, gearResp]);
|
||||
}
|
||||
|
||||
private updateTitle() {
|
||||
this.translateService.get("Default_Title").subscribe(
|
||||
data => { this.serviceComm.UpdatedComponentTitle(data); }
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user