Skip to content

Instantly share code, notes, and snippets.

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

Embed
What would you like to do?
// other imports...
import { TranslateService } from '@ngx-translate/core'; // add this
@Component({
selector: 'app-root',
templateUrl: 'app.component.html'
})
export class AppComponent {
constructor(
private platform: Platform,
private splashScreen: SplashScreen,
private statusBar: StatusBar,
private translate: TranslateService // add this
) {
this.initializeApp();
}
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.