angular-l10n
Version:
Angular library to translate texts, dates and numbers
19 lines (18 loc) • 1.11 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 L10nTimeAgoPipe implements PipeTransform {
protected intl: L10nIntlService;
constructor(intl: L10nIntlService);
transform(value: any, language: string, unit: Intl.RelativeTimeFormatUnit, options?: Intl.RelativeTimeFormatOptions): string | null;
static ɵfac: i0.ɵɵFactoryDeclaration<L10nTimeAgoPipe, never>;
static ɵpipe: i0.ɵɵPipeDeclaration<L10nTimeAgoPipe, "l10nTimeAgo", true>;
}
export declare class L10nTimeAgoAsyncPipe extends L10nAsyncPipe implements PipeTransform {
protected intl: L10nIntlService;
constructor(intl: L10nIntlService);
transform(value: any, unit: Intl.RelativeTimeFormatUnit, options?: Intl.RelativeTimeFormatOptions, language?: string): string | null;
static ɵfac: i0.ɵɵFactoryDeclaration<L10nTimeAgoAsyncPipe, never>;
static ɵpipe: i0.ɵɵPipeDeclaration<L10nTimeAgoAsyncPipe, "l10nTimeAgoAsync", true>;
}