@dnb/eufemia
Version:
DNB Eufemia Design System UI Library
16 lines (15 loc) • 614 B
TypeScript
/**
* Locale-aware separator lookups and currency symbol resolution.
*/
/**
* Returns a decimal separator symbol based on the given locale.
*/
export declare function getDecimalSeparator(locale?: string | null): string;
/**
* Returns a thousands separator symbol based on the given locale.
*/
export declare function getThousandsSeparator(locale?: string | null): string;
/**
* Returns a currency symbol based on the given locale.
*/
export declare function getCurrencySymbol(locale?: string | null, currency?: string | boolean | null, display?: string | boolean | null, number?: string | number): string;