Intl.getCanonicalLocales is not available on IE11, and therefore we used to rely on
Intl.NumberFormat.supportedLocalesOf to polyfill this method.
However, when used together with UnifiedNumberFormat polyfill, this causes an infinite
recursion loop because UnifiedNumberFormat.supportedLocalesOf will eventually call into
Intl.getCanonicalLocales! This diff puts a stopgap by using Intl.DateTimeFormat instead,
since it is not polyfilled by formatjs.
Fixes #543
Intl.getCanonicalLocales
is not available on IE11, and therefore we used to rely onIntl.NumberFormat.supportedLocalesOf
to polyfill this method.However, when used together with
UnifiedNumberFormat
polyfill, this causes an infinite recursion loop becauseUnifiedNumberFormat.supportedLocalesOf
will eventually call intoIntl.getCanonicalLocales
! This diff puts a stopgap by usingIntl.DateTimeFormat
instead, since it is not polyfilled by formatjs.