Crates.io | intl_pluralrules |
lib.rs | intl_pluralrules |
version | 7.0.2 |
source | src |
created_at | 2018-07-30 15:54:32.724692 |
updated_at | 2022-10-19 23:13:31.230844 |
description | Unicode Plural Rules categorizer for numeric input. |
homepage | |
repository | https://github.com/zbraniecki/pluralrules |
max_upload_size | |
id | 76665 |
size | 108,475 |
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 36 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:
cargo regenerate-data
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 cargo fmt
.
Thank you to all contributors!