UNPKG

angular-l10n

Version:

An Angular library to translate messages, dates and numbers

18 lines (17 loc) 744 B
import { ElementRef, Renderer2 } from '@angular/core'; import { LocaleService } from '../services/locale.service'; import { BaseDirective } from '../models/base-directive'; import { DateTimeOptions } from '../models/types'; export declare class L10nDateDirective extends BaseDirective { protected locale: LocaleService; protected el: ElementRef; protected renderer: Renderer2; l10nDate: string | DateTimeOptions; format: string | DateTimeOptions; constructor(locale: LocaleService, el: ElementRef, renderer: Renderer2); protected setup(): void; protected replace(): void; protected replaceText(): void; protected replaceAttributes(): void; protected getValue(key: string): string; }