Translate Back Button Globallty

#1

Hi, I have many pages with back button

There is a method that i can use for translate the back button in globally mode?

I use ng2-translate module for translate my app

Thank You

#2

In your app module you can use

@NgModule({
  declarations: [
    MyApp
  ],
  imports: [
    IonicModule.forRoot(MyApp, {
      backButtonText: 'Voltar' /* ADD TRANSLATION HERE */
    });
  ]
})
export class AppModule {}
1 Like