diff --git a/src/libs/IntlPolyfill/index.native.ts b/src/libs/IntlPolyfill/index.native.ts index 7a21ae26bfa4..ca1c8f4c250e 100644 --- a/src/libs/IntlPolyfill/index.native.ts +++ b/src/libs/IntlPolyfill/index.native.ts @@ -1,16 +1,18 @@ +import polyfillDateTimeFormat from './polyfillDateTimeFormat'; import polyfillListFormat from './polyfillListFormat'; +import polyfillNumberFormat from './polyfillNumberFormat'; import type IntlPolyfill from './types'; /** * Polyfill the Intl API, always performed for native devices. */ const intlPolyfill: IntlPolyfill = () => { - // Native devices require extra polyfills which are - // not yet implemented in hermes. - // see support: https://hermesengine.dev/docs/intl/ - + // Native devices require extra polyfills + require('@formatjs/intl-getcanonicallocales/polyfill'); require('@formatjs/intl-locale/polyfill'); - + require('@formatjs/intl-pluralrules/polyfill'); + polyfillNumberFormat(); + polyfillDateTimeFormat(); polyfillListFormat(); };