import { Pipe , PipeTransform } from '@angular/core' ; @ Pipe ( { name : 'languageLabel' } ) export class LanguageLabelPipe implements PipeTransform { static prefix = 'languages.full.' ; transform ( language , prefix = LanguageLabelPipe . prefix , ... args ) { return `${ prefix }${ language }` ; } }