@formatjs/intl-pluralrules 1.5.5 → 1.5.9
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 +35 -0
- package/README.md +1 -26
- package/dist/polyfill-with-locales-for-test262.min.js +2 -1
- package/dist/polyfill-with-locales-for-test262.min.js.map +1 -1
- package/dist/umd/intl-pluralrules.js +2 -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 +2 -1
- package/dist/umd/polyfill-with-locales.js.map +1 -1
- package/dist/umd/polyfill.js +2 -1
- package/dist/umd/polyfill.js.map +1 -1
- package/lib/tsdoc-metadata.json +1 -1
- package/package.json +16 -10
- package/polyfill.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,41 @@
|
|
|
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.9](https://github.com/formatjs/formatjs/compare/@formatjs/intl-pluralrules@1.5.8...@formatjs/intl-pluralrules@1.5.9) (2020-05-16)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @formatjs/intl-pluralrules
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [1.5.8](https://github.com/formatjs/formatjs/compare/@formatjs/intl-pluralrules@1.5.7...@formatjs/intl-pluralrules@1.5.8) (2020-05-05)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @formatjs/intl-pluralrules
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## 1.5.7 (2020-04-28)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @formatjs/intl-pluralrules
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
## [1.5.6](https://github.com/formatjs/formatjs/compare/@formatjs/intl-pluralrules@1.5.5...@formatjs/intl-pluralrules@1.5.6) (2020-04-24)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### Bug Fixes
|
|
34
|
+
|
|
35
|
+
* **eslint-plugin-formatjs:** add missing dep ([776390e](https://github.com/formatjs/formatjs/commit/776390e9d6cb3bc1eef07b2e92057136cfe95b76))
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
6
41
|
## [1.5.5](https://github.com/formatjs/formatjs/compare/@formatjs/intl-pluralrules@1.5.4...@formatjs/intl-pluralrules@1.5.5) (2020-04-14)
|
|
7
42
|
|
|
8
43
|
|
package/README.md
CHANGED
|
@@ -1,28 +1,3 @@
|
|
|
1
1
|
# `intl-pluralrules`
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
[![npm Version][npm-badge]][npm]
|
|
6
|
-

|
|
7
|
-
|
|
8
|
-
## Installation
|
|
9
|
-
|
|
10
|
-
```
|
|
11
|
-
npm install @formatjs/intl-pluralrules
|
|
12
|
-
```
|
|
13
|
-
|
|
14
|
-
# Usage
|
|
15
|
-
|
|
16
|
-
```tsx
|
|
17
|
-
import '@formatjs/intl-pluralrules/polyfill';
|
|
18
|
-
import '@formatjs/intl-pluralrules/dist/locale-data/en'; // locale-data for en
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
TO polyfill w/ ALL locales:
|
|
22
|
-
|
|
23
|
-
```tsx
|
|
24
|
-
import '@formatjs/intl-pluralrules/polyfill-locales';
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
[npm]: https://www.npmjs.org/package/@formatjs/intl-pluralrules
|
|
28
|
-
[npm-badge]: https://img.shields.io/npm/v/@formatjs/intl-pluralrules.svg?style=flat-square
|
|
3
|
+
We've migrated the docs to https://formatjs.io.
|
|
@@ -164,7 +164,8 @@
|
|
|
164
164
|
// NOTE: we must NOT call `supportedLocalesOf` of a formatjs polyfill, or their implementation
|
|
165
165
|
// will even eventually call this method recursively. Here we use `Intl.DateTimeFormat` since it
|
|
166
166
|
// is not polyfilled by `@formatjs`.
|
|
167
|
-
|
|
167
|
+
// TODO: Fix TypeScript type def for this bc undefined is just fine
|
|
168
|
+
return Intl.DateTimeFormat.supportedLocalesOf(locales);
|
|
168
169
|
}
|
|
169
170
|
|
|
170
171
|
var __extends = (undefined && undefined.__extends) || (function () {
|