summaryrefslogtreecommitdiffstats
path: root/third_party/rust/intl_pluralrules/README.md
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
commit36d22d82aa202bb199967e9512281e9a53db42c9 (patch)
tree105e8c98ddea1c1e4784a60a5a6410fa416be2de /third_party/rust/intl_pluralrules/README.md
parentInitial commit. (diff)
downloadfirefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.tar.xz
firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.zip
Adding upstream version 115.7.0esr.upstream/115.7.0esrupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'third_party/rust/intl_pluralrules/README.md')
-rw-r--r--third_party/rust/intl_pluralrules/README.md42
1 files changed, 42 insertions, 0 deletions
diff --git a/third_party/rust/intl_pluralrules/README.md b/third_party/rust/intl_pluralrules/README.md
new file mode 100644
index 0000000000..50191d962a
--- /dev/null
+++ b/third_party/rust/intl_pluralrules/README.md
@@ -0,0 +1,42 @@
+# INTL Plural Rules
+
+`intl_pluralrules` categorizes numbers by plural operands. See [Unicode Plural Rules](https://unicode.org/reports/tr35/tr35-numbers.html#Language_Plural_Rules)
+
+
+[![crates.io](https://img.shields.io/crates/v/intl_pluralrules.svg)](https://crates.io/crates/intl_pluralrules)
+[![Build Status](https://travis-ci.org/zbraniecki/pluralrules.svg?branch=master)](https://travis-ci.org/zbraniecki/pluralrules)
+[![Coverage Status](https://coveralls.io/repos/github/zbraniecki/pluralrules/badge.svg?branch=master)](https://coveralls.io/github/zbraniecki/pluralrules?branch=master)
+
+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
+------------
+
+* [manishearth](https://github.com/manishearth)
+
+Thank you to all contributors!
+
+[CLDR]: https://cldr.unicode.org/
+[PluralRules]: https://cldr.unicode.org/index/cldr-spec/plural-rules
+[LDML Language Plural Rules Syntax]: https://unicode.org/reports/tr35/tr35-numbers.html#Language_Plural_Rules