import { Pipe , PipeTransform } from "@angular/core" ; import { I18nService } from "jslib-common/abstractions/i18n.service" ; @ Pipe ( { name : "i18n" , } ) export class I18nPipe implements PipeTransform { constructor ( private i18nService ) { } transform ( id , p1 ? , p2 ? , p3 ? ) { return this . i18nService . t ( id , p1 , p2 , p3 ) ; } }