Skip to content
kodiakhq[bot] edited this page Jul 1, 2024 · 12 revisions

@sumup/intl

Number

Function Description
formatNumber -
formatNumberToParts -
resolveNumberFormat -

Currency

Function Description
formatCurrency -
formatCurrencyToParts -
resolveCurrencyFormat -

Date & Time

Function Description
formatDateTime -
formatDate Formats a Date with support for various date styles.
formatTime Formats a Date with support for various time styles.
formatDateTimeToParts -
resolveDateTimeFormat -

Other

Variable Description
CURRENCIES An object that maps a 2 char country code to its official 3 char currency code. View all supported countries.
isDateTimeFormatSupported Whether the Intl and Intl.DateTimeFormat APIs are supported by the runtime.
isDateTimeFormatToPartsSupported Whether the Intl, Intl.DateTimeFormat, and Intl.DateTimeFormat.formatToParts APIs are supported by the runtime.
isNumberFormatSupported Whether the Intl and Intl.NumberFormat APIs are supported by the runtime.
isNumberFormatToPartsSupported Whether the Intl, Intl.NumberFormat, and Intl.NumberFormat.formatToParts APIs are supported by the runtime.