UNPKG

angular-l10n

Version:

An Angular library to translate messages, dates and numbers

19 lines (18 loc) 767 B
import { ElementRef, Renderer2 } from '@angular/core'; import { LocaleService } from '../services/locale.service'; import { BaseDirective } from '../models/base-directive'; import { RelativeTimeOptions, Unit } from '../models/types'; export declare class L10nTimeAgoDirective extends BaseDirective { protected locale: LocaleService; protected el: ElementRef; protected renderer: Renderer2; l10nTimeAgo: RelativeTimeOptions; unit: Unit; format: RelativeTimeOptions; constructor(locale: LocaleService, el: ElementRef, renderer: Renderer2); protected setup(): void; protected replace(): void; protected replaceText(): void; protected replaceAttributes(): void; protected getValue(key: string): string; }