UNPKG

@singleton-i18n/angular-client

Version:

Singleton client code for Angular 10.

76 lines (75 loc) 1.77 kB
export declare enum CurrenciesDataType { DIGIST = "_digits", ROUNDING = "_rounding" } export declare enum RoundingMode { ROUND_UP = 0, ROUND_DOWN = 1, ROUND_CEIL = 2, ROUND_FLOOR = 3, ROUND_HALF_UP = 4, ROUND_HALF_DOWN = 5, ROUND_HALF_EVEN = 6, ROUND_HALF_CEIL = 7, ROUND_HALF_FLOOR = 8, EUCLID = 9 } export declare enum NumberFormatTypes { DECIMAL = "decimal", PERCENT = "percent", CURRENCIES = "currencies", PLURAL = "plural", CURRENCYSYMBOL = "currencySymbol" } export interface Symbols { decimal: string; exponential: string; group: string; infinity: string; list: string; minusSign: string; nan: string; perMille: string; percentSign: string; plusSign: string; superscriptingExponent: string; timeSeparator: string; } export interface DataForCurrency { defaultNumberingSystem: string; currencySymbols: { [key: string]: any; }; fractions: { [currencyCode: string]: { _digits: string; _rounding: string; }; }; currencyFormats: string; numberSymbols: Symbols; numberFormats: { 'decimalFormats-long': any; 'decimalFormats-short': any; }; numberingSystem?: { [key: string]: string; }; } export interface DataForNumber { defaultNumberingSystem: string; numberFormats: { percentFormats: string; decimalFormats: string; 'decimalFormats-long': any; 'decimalFormats-short': any; }; numberSymbols: Symbols; } export interface NumberFormatOptions { minIntegerDigits?: number; minFractionDigits?: number; maxFractionDigits?: number; notation?: string; compactDisplay?: string; }