Skip to content
Snippets Groups Projects
Commit 2bbf4eff authored by Alex ORLUC's avatar Alex ORLUC
Browse files

FEAT #13271 TIME 0:10 fix set local date

parent ac295a0c
No related branches found
No related tags found
No related merge requests found
...@@ -48,7 +48,6 @@ export class AppComponent implements OnInit, AfterViewInit { ...@@ -48,7 +48,6 @@ export class AppComponent implements OnInit, AfterViewInit {
private adapter: DateAdapter<any>, private adapter: DateAdapter<any>,
public dialog: MatDialog, public dialog: MatDialog,
) { ) {
translate.setDefaultLang('fr'); translate.setDefaultLang('fr');
iconReg.addSvgIcon('maarchLogo', sanitizer.bypassSecurityTrustResourceUrl('../rest/images?image=onlyLogo')); iconReg.addSvgIcon('maarchLogo', sanitizer.bypassSecurityTrustResourceUrl('../rest/images?image=onlyLogo'));
iconReg.addSvgIcon('maarchLogoFull', sanitizer.bypassSecurityTrustResourceUrl('../rest/images?image=logo')); iconReg.addSvgIcon('maarchLogoFull', sanitizer.bypassSecurityTrustResourceUrl('../rest/images?image=logo'));
...@@ -66,8 +65,10 @@ export class AppComponent implements OnInit, AfterViewInit { ...@@ -66,8 +65,10 @@ export class AppComponent implements OnInit, AfterViewInit {
this.headerService.hideSideBar = true; this.headerService.hideSideBar = true;
setTimeout(() => { setTimeout(() => {
this.headerService.sideNavLeft = this.snavLeft; this.headerService.sideNavLeft = this.snavLeft;
this.adapter.setLocale(this.translate.instant('lang.langISO'));
}, 0); }, 0);
this.translate.get('lang.langISO').subscribe((res: string) => {
this.adapter.setLocale(res);
});
} }
ngAfterViewInit(): void { ngAfterViewInit(): void {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment