Skip to content

Releases: sumup-oss/intl-js

v1.2.0

24 Dec 01:10
Compare
Choose a tag to compare

1.2.0 (2020-12-24)

Features

  • add support for formatting with unit (b00d0ab)

v1.1.3

21 Aug 09:55
Compare
Choose a tag to compare

1.1.3 (2020-08-21)

Bug Fixes

  • reduce minimum Node version to v10+ (69f3a0d)

v1.1.2

29 Jul 12:27
Compare
Choose a tag to compare

1.1.2 (2020-07-29)

Bug Fixes

  • remove deprecation warning (71b2ed5)

v1.1.1

29 Jul 07:06
Compare
Choose a tag to compare

1.1.1 (2020-07-29)

Bug Fixes

  • check support for Intl ahead of time (a792f26)

v1.1.0

28 Jul 14:04
Compare
Choose a tag to compare

1.1.0 (2020-07-28)

Features

  • deprecate isIntlSupported in favor of isNumberFormatSupported and add isNumberFormatToPartsSupported (ef5ad48)

v1.0.3

27 Jul 11:39
Compare
Choose a tag to compare

1.0.3 (2020-07-27)

Bug Fixes

  • ensure that Intl.NumberFormat.formatToParts is available (f4121a2)

v1.0.2

21 Jul 13:23
bf466fd
Compare
Choose a tag to compare

1.0.2 (2020-07-21)

Bug Fixes

  • ensure that Intl.NumberFormat.formatToParts is available (#5) (bf466fd)

v1.0.1

20 Jul 16:16
Compare
Choose a tag to compare

1.0.1 (2020-07-20)

Bug Fixes

v1.0.0

25 May 08:54
Compare
Choose a tag to compare

Initial Release

Format 🔢 numbers and 💱 currency values for any locale with the ECMAScript Internationalization API.

Installation

@sumup/intl needs to be installed as a dependency via the Yarn or npm package managers. Depending on your preference, run one of the following:

# With Yarn
$ yarn add @sumup/intl

# With npm
$ npm install @sumup/intl

@sumup/intl wraps the ECMAScript Internationalization API which is supported by all modern browsers. If you need to support older browsers, you need to include a polyfill for the Intl.NumberFormat API.

Node supports the Intl API since v8, however, it includes only the English localisations up to v12. Node v13 and above support all locales. If you're unable to use Node v13+, you can either include a polyfill for the Intl.NumberFormat API or use a custom Node build.

➡️ Read the full documentation

v1.0.0-alpha.6

13 May 12:43
Compare
Choose a tag to compare
v1.0.0-alpha.6 Pre-release
Pre-release

1.0.0-alpha.6 (2020-05-13)

Features

  • do not expose resolveLocale and resolveCurrency helpers (4f5dfb7)
  • replace currencyIndex with currencyPosition enum (00f2ad0)
  • simplify get format return value (600f0c5)
  • switch to a faster memoize implementation (a5edba6)