8 releases (3 stable)
✓ Uses Rust 2018 edition
|1.0.2||Jan 7, 2019|
|1.0.1||Oct 26, 2018|
|1.0.0||Aug 15, 2018|
|0.9.1||Aug 7, 2018|
|0.8.2||Jul 31, 2018|
#14 in Internationalization (i18n)
2,757 downloads per month
Used in 9 crates (1 directly)
intl_pluralrules categorizes numbers by plural operands. See Unicode Plural Rules
This library is intended to be used to find the plural category of numeric input.
Currently produces operands compliant with CLDR 34 into Rust 1.31 and above.
Updating CLDR Data
If you would like to update rules.rs with plural rules that are not the specified version above (e.g. future versions of CLDR or external CLDR-compliant rules), you can regenerate the logic in rules.rs with the command:
You will need to replace the JSON files under
/cldr_data/ with your new CLDR JSON files.
cargo build cargo test
When submitting a PR please use
Thank you to all contributors!