Last active
January 9, 2019 17:52
-
-
Save bodrovis/68f6c1f27ca44ac36fd09bdba006e5ef to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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