I'm migrating react-intl to version 3.0, and need to polyfill locale-data for IE. Specifically I want to load a polyfill of locale data for en-US. I can only find @formatjs/intl-relativetimeformat/dist/locale-data/en
locale file.
if (!Intl.RelativeTimeFormat) {
// eslint-disable-next-line global-require
require('@formatjs/intl-relativetimeformat/polyfill');
// eslint-disable-next-line global-require
require('@formatjs/intl-relativetimeformat/dist/locale-data/en-US');
}
It leads to this error :
Module not found: Error: Can't resolve '@formatjs/intl-relativetimeformat/dist/locale-data/en-US' in '/xxx/xxx/xxx/xxx/app'