One of our goals is to provide developers with access to newest ECMA-402 Intl APIs. Therefore, FormatJS suite also provide multiple high quality polyfills that are fully tested using the Official ECMAScript Conformance Test Suite.
Our current list of polyfills includes:
- Intl.PluralRules
- Intl.RelativeTimeFormat
- Intl.ListFormat
- Intl.DisplayNames
- Intl.NumberFormat (ES2020)
- Intl.Locale
- Intl.LocaleMatcher
- Intl.getCanonicalLocales
- Intl.DateTimeFormat (ES2020)
- Intl.Segmenter
- Intl.DurationFormat
- Intl.supportedValuesOf
polyfill-fastly.io Integration
For basic use cases, we recommend using polyfill-fastly.io or polyfill-library to generate polyfill bundle since it automatically resolves the dependencies above for you.