import { Pipe , PipeTransform } from '@angular/core' ; import { Language } from '@data/poe/schema' ; import { ItemStat } from '../item' ; import { StatsService } from './stats.service' ; @ Pipe ( { name : 'statTransform' } ) export class StatTransformPipe implements PipeTransform { constructor ( private readonly statsService ) { } public transform ( stat , language ) { return this . statsService . transform ( stat , language ) ; } }