angular-l10n
Version:
Angular library to translate texts, dates and numbers
19 lines (18 loc) • 1.05 kB
TypeScript
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 L10nPluralPipe implements PipeTransform {
protected intl: L10nIntlService;
constructor(intl: L10nIntlService);
transform(value: any, language: string, prefix?: string, options?: Intl.PluralRulesOptions): string | null;
static ɵfac: i0.ɵɵFactoryDeclaration<L10nPluralPipe, never>;
static ɵpipe: i0.ɵɵPipeDeclaration<L10nPluralPipe, "l10nPlural", true>;
}
export declare class L10nPluralAsyncPipe extends L10nAsyncPipe implements PipeTransform {
protected intl: L10nIntlService;
constructor(intl: L10nIntlService);
transform(value: any, prefix?: string, options?: Intl.PluralRulesOptions, language?: string): string | null;
static ɵfac: i0.ɵɵFactoryDeclaration<L10nPluralAsyncPipe, never>;
static ɵpipe: i0.ɵɵPipeDeclaration<L10nPluralAsyncPipe, "l10nPluralAsync", true>;
}