UNPKG

angular-l10n

Version:

An Angular library to translate messages, dates and numbers

19 lines (18 loc) 962 B
import { PipeTransform } from '@angular/core'; import { LocaleService } from '../services/locale.service'; import { DigitsOptions } from '../models/types'; export declare class L10nDecimalPipe implements PipeTransform { protected locale: LocaleService; constructor(locale: LocaleService); transform(value: any, defaultLocale: string, digits?: string | DigitsOptions): string | null; } export declare class L10nPercentPipe implements PipeTransform { protected locale: LocaleService; constructor(locale: LocaleService); transform(value: any, defaultLocale: string, digits?: string | DigitsOptions): string | null; } export declare class L10nCurrencyPipe implements PipeTransform { protected locale: LocaleService; constructor(locale: LocaleService); transform(value: any, defaultLocale: string, currency: string, currencyDisplay?: 'code' | 'symbol' | 'name', digits?: string | DigitsOptions): string | null; }