@formatjs/intl-pluralrules 1.5.3 → 1.5.4
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/polyfill-with-locales-for-test262.min.js +4 -1
- package/dist/polyfill-with-locales-for-test262.min.js.map +1 -1
- package/dist/umd/intl-pluralrules.js +4 -1
- package/dist/umd/intl-pluralrules.js.map +1 -1
- package/dist/umd/intl-pluralrules.min.js +1 -1
- package/dist/umd/intl-pluralrules.min.js.map +1 -1
- package/dist/umd/polyfill-with-locales.js +4 -1
- package/dist/umd/polyfill-with-locales.js.map +1 -1
- package/dist/umd/polyfill.js +4 -1
- package/dist/umd/polyfill.js.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [1.5.4](https://github.com/formatjs/formatjs/compare/@formatjs/intl-pluralrules@1.5.3...@formatjs/intl-pluralrules@1.5.4) (2020-03-30)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @formatjs/intl-pluralrules
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [1.5.3](https://github.com/formatjs/formatjs/compare/@formatjs/intl-pluralrules@1.5.1...@formatjs/intl-pluralrules@1.5.3) (2020-03-18)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @formatjs/intl-pluralrules
|
|
@@ -161,7 +161,10 @@
|
|
|
161
161
|
if (typeof getCanonicalLocales === 'function') {
|
|
162
162
|
return getCanonicalLocales(locales);
|
|
163
163
|
}
|
|
164
|
-
|
|
164
|
+
// NOTE: we must NOT call `supportedLocalesOf` of a formatjs polyfill, or their implementation
|
|
165
|
+
// will even eventually call this method recursively. Here we use `Intl.DateTimeFormat` since it
|
|
166
|
+
// is not polyfilled by `@formatjs`.
|
|
167
|
+
return Intl.DateTimeFormat.supportedLocalesOf(locales || '');
|
|
165
168
|
}
|
|
166
169
|
|
|
167
170
|
var __extends = (undefined && undefined.__extends) || (function () {
|