Ng2-translate (translate pipe) not working in modals

The translate pipe works everywhere in my app, except in templates of modals. There I get the error No provider for TranslateService!.

I’ve included the pipe in ionicBootstrap() to make it available globally.

ionicBootstrap(MyApp, [
  provide(PLATFORM_PIPES, {useValue: [TranslatePipe], multi:true}),

I tried, however, to declare the TranslatePipe in the the component decorator, but this doesn’t work either.

Any idea how to get it working in the modals as well?

1 Like

This can be solved using the information provided here: Ionic2 Pipes is not working in modal