I changed the name of the Back button in ionic 2 but does somebody know how you can translate this button with ng2-translate?
this.config.set(\'backButtonText\',
You can translate the back text like this, put on app.component.ts
ngAfterViewInit() {
this.navCtrl.viewWillEnter.subscribe((view) => {
let parentView = this.navCtrl.getPrevious(view);
if (parentView) {
this.translate.get('nav.back.label').first().subscribe(
moduleName => { this.navCtrl.getActive().getNavbar().setBackButtonText(moduleName); }
);
}
}); }