import * as Pluralize from 'pluralize' ; import { Pipe , PipeTransform } from '@angular/core' ; @ Pipe ( { name : 'pluralize' } ) export class PluralizePipe implements PipeTransform { transform ( value , arg ) { const pluralize = Pluralize ; return pluralize ( value , arg ) ; } }