@formatjs/intl-relativetimeformat 4.5.10 → 4.5.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/en.d.ts +420 -0
- package/dist/en.js +5 -0
- package/dist/polyfill-with-locales-for-test262.js +4 -1
- package/dist/polyfill-with-locales-for-test262.js.map +1 -1
- package/dist/polyfill-with-locales.js +4 -1
- package/dist/polyfill-with-locales.js.map +1 -1
- package/dist/umd/intl-relativetimeformat-with-locales.js +4 -1
- package/dist/umd/intl-relativetimeformat-with-locales.js.map +1 -1
- package/dist/umd/intl-relativetimeformat-with-locales.min.js +1 -1
- package/dist/umd/intl-relativetimeformat-with-locales.min.js.map +1 -1
- package/dist/umd/intl-relativetimeformat.js +4 -1
- package/dist/umd/intl-relativetimeformat.js.map +1 -1
- package/dist/umd/intl-relativetimeformat.min.js +1 -1
- package/dist/umd/intl-relativetimeformat.min.js.map +1 -1
- package/dist/umd/polyfill-intl-relativetimeformat.js +4 -1
- package/dist/umd/polyfill-intl-relativetimeformat.js.map +1 -1
- package/dist-es6/en.d.ts +420 -0
- package/dist-es6/en.js +3 -0
- package/lib/en.d.ts +420 -0
- package/lib/en.js +3 -0
- package/package.json +5 -5
- package/src/en.ts +3 -0
|
@@ -124,7 +124,10 @@
|
|
|
124
124
|
if (typeof getCanonicalLocales === 'function') {
|
|
125
125
|
return getCanonicalLocales(locales);
|
|
126
126
|
}
|
|
127
|
-
|
|
127
|
+
// NOTE: we must NOT call `supportedLocalesOf` of a formatjs polyfill, or their implementation
|
|
128
|
+
// will even eventually call this method recursively. Here we use `Intl.DateTimeFormat` since it
|
|
129
|
+
// is not polyfilled by `@formatjs`.
|
|
130
|
+
return Intl.DateTimeFormat.supportedLocalesOf(locales || '');
|
|
128
131
|
}
|
|
129
132
|
|
|
130
133
|
var __extends = (undefined && undefined.__extends) || (function () {
|