-
4cd3fbe
Thanks @connor-baer! - Added support for formatting relative times.import { formatRelativeTime } from '@sumup-oss/intl'; formatRelativeTime(7, 'years', 'pt-BR'); // 'em 7 anos'
- #270
44ad012
Thanks @connor-baer! - Removed theintl-format-cache
dependency.
-
#268
3d4219e
Thanks @connor-baer! - This package is now pure ESM. Please read this. -
#268
3d4219e
Thanks @connor-baer! - Raised the minimum Node.js version to 18+. This is the first maintained version with support for ES modules.
- #266
d817935
Thanks @connor-baer! - Improved the types to allow passing Temporal objects to the date and time formatting functions.
-
#251
ae93e19
Thanks @connor-baer! - Renamed the package scope from@sumup
to@sumup-oss
. Replace@sumup/intl
with@sumup-oss/intl
in yourpackage.json
file, then update all imports:-import { formatNumber } from '@sumup/intl'; +import { formatNumber } from '@sumup-oss/intl';
-
#252
53a8574
Thanks @connor-baer! - Removed the deprecatedformat
,formatToParts
,resolveFormat
, andisIntlSupported
exports. Use the explicitly namedformatNumber
,formatNumberToParts
,resolveNumberFormat
, andisNumberFormatSupported
exports instead. -
#250
bf12d97
Thanks @connor-baer! - Added support forTemporal
objects to the date and time formatting functions. Thetemporal-polyfill
package is now a required peer dependency.
- #198
fe8e8dc
Thanks @connor-baer! - Added exceptions for the COP and HUF currencies to be formatted without decimals. While these currencies support decimals under the ISO standard, the decimals are not used in everyday life.
- #158
a579522
Thanks @andrewgarshyn! - Update Croatian currency to EUR
- #125
f3932b6
Thanks @connor-baer! - Add support for formatting dates and times
- #139
a35b171
Thanks @connor-baer! - Correct types forresolveCurrencyFormat
682ae11
Thanks @connor-baer! - Use explicit names for number formatting functions
de86dad
Thanks @connor-baer! - Improve types of function parametersdafc682
Thanks @connor-baer! - MarkgroupDelimiter
anddecimalDelimiter
as optional
b00d0ab
Thanks @connor-baer! - Add support for formatting with unit