import { Pipe , PipeTransform } from '@angular/core' ; import { currentLocale , getLocalizedLabel } from './localization' ; /**
 * Re-use the step translation system for system UI
 */ @ Pipe ( { name : 'i18n' , pure : false , } ) export class I18nPipe implements PipeTransform { transform ( value ) { return getLocalizedLabel ( currentLocale . locale , value ) ; } }