angular-l10n
Version:
An Angular library to translate messages, dates and numbers
45 lines (44 loc) • 1.83 kB
TypeScript
import { ElementRef, Renderer2 } from '@angular/core';
import { LocaleService } from '../services/locale.service';
import { BaseDirective } from '../models/base-directive';
import { DigitsOptions } from '../models/types';
export declare class L10nDecimalDirective extends BaseDirective {
protected locale: LocaleService;
protected el: ElementRef;
protected renderer: Renderer2;
l10nDecimal: string | DigitsOptions;
digits: string | DigitsOptions;
constructor(locale: LocaleService, el: ElementRef, renderer: Renderer2);
protected setup(): void;
protected replace(): void;
protected replaceText(): void;
protected replaceAttributes(): void;
protected getValue(key: string): string;
}
export declare class L10nPercentDirective extends BaseDirective {
protected locale: LocaleService;
protected el: ElementRef;
protected renderer: Renderer2;
l10nPercent: string | DigitsOptions;
digits: string | DigitsOptions;
constructor(locale: LocaleService, el: ElementRef, renderer: Renderer2);
protected setup(): void;
protected replace(): void;
protected replaceText(): void;
protected replaceAttributes(): void;
protected getValue(key: string): string;
}
export declare class L10nCurrencyDirective extends BaseDirective {
protected locale: LocaleService;
protected el: ElementRef;
protected renderer: Renderer2;
l10nCurrency: string | DigitsOptions;
currencyDisplay: 'code' | 'symbol' | 'name';
digits: string | DigitsOptions;
constructor(locale: LocaleService, el: ElementRef, renderer: Renderer2);
protected setup(): void;
protected replace(): void;
protected replaceText(): void;
protected replaceAttributes(): void;
protected getValue(key: string): string;
}