Skip to content

Instantly share code, notes, and snippets.

@bodrovis bodrovis/app.component.ts
Last active Jan 9, 2019

What would you like to do?
// other imports...
import { TranslateService } from '@ngx-translate/core'; // add this
selector: 'app-root',
templateUrl: 'app.component.html'
export class AppComponent {
private platform: Platform,
private splashScreen: SplashScreen,
private statusBar: StatusBar,
private translate: TranslateService // add this
) {
initializeApp() {
// other stuff...
this.translate.setDefaultLang('en'); // add this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.