TranslatePipe in @App does not work


#1

I’m trying to use pipes for translation in ionic2. When using it in @Page it works as expected but as soon trying to use a pipe added directly in @App it’s not shown (ouptut is empty). Is “pipes” attribute not supported in @App?

@App({
  templateUrl: 'build/app.html',
  pipes: [TranslatePipe]  
})

Part of app.html

<ion-menu id="leftMenu" [content]="content">

  <ion-toolbar>
    <ion-title>Pages</ion-title>
  </ion-toolbar>

  <ion-content>
    <ion-list>
      <button ion-item *ngFor="#p of pages" (click)="openPage(p)">
        {{ p.title | translate }}
      </button>
    </ion-list>
  </ion-content>

</ion-menu>

Complete example is found on github -> https://github.com/cyrillzadra/MyIonic2ProjectTranslateIssue

Thanks for help.
cyrill