UNPKG

angular-l10n

Version:

Angular library to translate texts, dates and numbers

19 lines (18 loc) 1.07 kB
import { PipeTransform } from '@angular/core'; import { L10nAsyncPipe } from '../models/l10n-async-pipe'; import { L10nIntlService } from '../services/l10n-intl.service'; import * as i0 from "@angular/core"; export declare class L10nDisplayNamesPipe implements PipeTransform { protected intl: L10nIntlService; constructor(intl: L10nIntlService); transform(value: any, language: string, options: Intl.DisplayNamesOptions): string | null; static ɵfac: i0.ɵɵFactoryDeclaration<L10nDisplayNamesPipe, never>; static ɵpipe: i0.ɵɵPipeDeclaration<L10nDisplayNamesPipe, "l10nDisplayNames", true>; } export declare class L10nDisplayNamesAsyncPipe extends L10nAsyncPipe implements PipeTransform { protected intl: L10nIntlService; constructor(intl: L10nIntlService); transform(value: any, options: Intl.DisplayNamesOptions, language?: string): string | null; static ɵfac: i0.ɵɵFactoryDeclaration<L10nDisplayNamesAsyncPipe, never>; static ɵpipe: i0.ɵɵPipeDeclaration<L10nDisplayNamesAsyncPipe, "l10nDisplayNamesAsync", true>; }