import { Pipe, PipeTransform, Injectable } from '@angular/core'; import { TranslatePipe } from '@ngx-translate/core'; @Injectable() @Pipe({ name: 'naI18N', pure: false // required to update the value when the promise is resolved }) export class NaI18NPipe implements PipeTransform { constructor(private translate: TranslatePipe) { } transform(value: any, args?: any): any { return this.translate.transform(value, args); } }