2017-08-18 09:31:17 +00:00
|
|
|
import { Component } from '@angular/core';
|
|
|
|
import { FuseSplashScreenService } from './core/services/splash-screen.service';
|
2017-10-24 12:41:44 +00:00
|
|
|
import { TranslateService } from '@ngx-translate/core';
|
2017-06-27 08:08:19 +00:00
|
|
|
|
|
|
|
@Component({
|
2017-08-18 09:31:17 +00:00
|
|
|
selector : 'fuse-root',
|
2017-07-08 16:12:52 +00:00
|
|
|
templateUrl: './app.component.html',
|
2017-07-12 12:35:07 +00:00
|
|
|
styleUrls : ['./app.component.scss']
|
2017-06-27 08:08:19 +00:00
|
|
|
})
|
2017-08-18 09:31:17 +00:00
|
|
|
export class AppComponent
|
2017-07-08 16:12:52 +00:00
|
|
|
{
|
2017-10-24 12:41:44 +00:00
|
|
|
constructor(
|
|
|
|
private fuseSplashScreen: FuseSplashScreenService,
|
|
|
|
private translate: TranslateService
|
|
|
|
)
|
2017-07-12 12:35:07 +00:00
|
|
|
{
|
2017-10-24 12:41:44 +00:00
|
|
|
// Add languages
|
|
|
|
this.translate.addLangs(['en', 'tr']);
|
|
|
|
|
|
|
|
// Set the default language
|
|
|
|
this.translate.setDefaultLang('en');
|
|
|
|
|
|
|
|
// Use a language
|
|
|
|
this.translate.use('en');
|
2017-07-12 12:35:07 +00:00
|
|
|
}
|
2017-06-27 08:08:19 +00:00
|
|
|
}
|