You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.3 KiB
TypeScript
43 lines
1.3 KiB
TypeScript
|
2 weeks ago
|
import { Component } from '@angular/core';
|
||
|
|
import { SideNavComponent } from '../shared/components/side-nav/side-nav.component';
|
||
|
|
import { TranslateModule, TranslateService } from '@ngx-translate/core';
|
||
|
|
import { RouterOutlet } from '@angular/router';
|
||
|
|
import { StorageService } from '../shared/services/storage.service';
|
||
|
|
import { HeaderComponent } from '../shared/components/header/header.component';
|
||
|
|
|
||
|
|
@Component({
|
||
|
|
selector: 'app-full-layout',
|
||
|
|
imports: [SideNavComponent, RouterOutlet, HeaderComponent, TranslateModule],
|
||
|
|
templateUrl: './full-layout.component.html',
|
||
|
|
styleUrl: './full-layout.component.scss'
|
||
|
|
})
|
||
|
|
export class FullLayoutComponent {
|
||
|
|
|
||
|
|
direction: any;
|
||
|
|
footerText: string = '';
|
||
|
|
|
||
|
|
constructor(private translateService: TranslateService,
|
||
|
|
private stoargeService: StorageService
|
||
|
|
){
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
ngOnInit(){
|
||
|
|
this.translateService.setDefaultLang(this.stoargeService.getItem('language')!);
|
||
|
|
this.translateService.use(this.stoargeService.getItem('language')!);
|
||
|
|
this.direction = this.stoargeService.getItem('direction');
|
||
|
|
this.setFooterText();
|
||
|
|
}
|
||
|
|
|
||
|
|
setFooterText(){
|
||
|
|
this.footerText = this.translateService.instant('copyRightsReserved', {
|
||
|
|
currentYearLong: this.currentYearLong()
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
currentYearLong(): number {
|
||
|
|
return new Date().getFullYear();
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|