gecko-dev/third_party/rust/intl_pluralrules
Zibi Braniecki 51dd2eebad Bug 1662309 - Update fluent-rs to 0.12. r=kamidphish
Differential Revision: https://phabricator.services.mozilla.com/D88942
2020-09-02 20:06:41 +00:00
..
benches Bug 1560038 - Vendor in fluent-rc. r=emilio 2020-03-11 08:45:00 +02:00
src Bug 1662309 - Update fluent-rs to 0.12. r=kamidphish 2020-09-02 20:06:41 +00:00
.cargo-checksum.json Bug 1662309 - Update fluent-rs to 0.12. r=kamidphish 2020-09-02 20:06:41 +00:00
Cargo.toml Bug 1662309 - Update fluent-rs to 0.12. r=kamidphish 2020-09-02 20:06:41 +00:00
README.md Bug 1560038 - Vendor in fluent-rc. r=emilio 2020-03-11 08:45:00 +02:00

README.md

INTL Plural Rules

intl_pluralrules categorizes numbers by plural operands. See Unicode Plural Rules

crates.io Build Status Coverage Status

This library is intended to be used to find the plural category of numeric input.

Status

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.

Local Development

cargo build
cargo test

When submitting a PR please use cargo fmt.

Contributors

Thank you to all contributors!