Skip to content

v1.0.0

Compare
Choose a tag to compare
@connor-baer connor-baer released this 25 May 08:54

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