fuse-angular/src/app/app.component.ts

27 lines
693 B
TypeScript
Raw Normal View History

2017-08-18 09:31:17 +00:00
import { Component } from '@angular/core';
import { FuseSplashScreenService } from './core/services/splash-screen.service';
import { TranslateService } from '@ngx-translate/core';
@Component({
2017-08-18 09:31:17 +00:00
selector : 'fuse-root',
templateUrl: './app.component.html',
2017-07-12 12:35:07 +00:00
styleUrls : ['./app.component.scss']
})
2017-08-18 09:31:17 +00:00
export class AppComponent
{
constructor(
private fuseSplashScreen: FuseSplashScreenService,
private translate: TranslateService
)
2017-07-12 12:35:07 +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
}
}