Releases: prantlf/fast-plural-rules
Releases · prantlf/fast-plural-rules
v2.0.2
v2.0.1
v2.0.0
2.0.0 (2022-08-18)
Features
- API for checking supported locales and plural forms (fc92897)
- Declare CJS, UMD and ES exports in package.json (5ab230a)
BREAKING CHANGES
- Node.js 14.8 or newer recommended. Supports
type
,module
,types
andexports
. The sources didn't change, which means that the exported modules will still work in Node.js 6 and newer, but the're no tests proving that.
v1.0.2
v1.0.1
v1.0.0
1.0.0 (2019-07-31)
Bug Fixes
- Correct the Baltic plural rules 1 and 2 (ebe746d)
- Correct the Celtic plural rules 1, 2 and 3 (df6a2c0)
- Correct the Semitic plural rule 1 (6fbd979)
- Fix the Celtic plural rule 4 computation for the cardinal 0 (a24dc1a)
- Keep Mozilla's plural rule number for zero in Baltic, Shuar and Welsh (a008166)
- Transpile the CJS module output for Node.js 6 or newer (c408cf0)
- Upgrade npm module dependencies (90e9fb8)
Features
- Introduce support for plural rule names according to CLDR (9b21be2)
- Provide both minificated and only cleaned-up UMD scripts for the browser (637714c)
BREAKING CHANGES
- These three language families used their last rule for the cardinal zero. It was not consistent with the result of the original Mozilla's rule evaluation. I moved the zero rule to the beginning for these three families to avoid mistakes from this only difference.
If you write language packs for these language groups:
- Baltic (Latvian, Latgalian)
- Ecuador indigenous languages (Shuar)
- Welsh
Move the string for the plural form for zero to the beginning of the string array.
The Semitic (Arabic) plural rules still put the zero plural form as the last one as the Mozilla's original does.