Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/locales.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'rules.go')
-rw-r--r--rules.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/rules.go b/rules.go
index 80c00d98..26d6f873 100644
--- a/rules.go
+++ b/rules.go
@@ -47,6 +47,15 @@ type Translator interface {
// returns an array of ordinal plural rules associated
// with this translator
PluralsOrdinal() []PluralRule
+
+ // returns the cardinal PluralRule given 'num' and digits/precision of 'v' for locale
+ CardinalPluralRule(num float64, v uint64) PluralRule
+
+ // returns the ordinal PluralRule given 'num' and digits/precision of 'v' for locale
+ OrdinalPluralRule(num float64, v uint64) PluralRule
+
+ // returns the ordinal PluralRule given 'num1', 'num2' and digits/precision of 'v1' and 'v2' for locale
+ RangePluralRule(num1 float64, v1 uint64, num2 float64, v2 uint64) PluralRule
}
// String returns the string value of PluralRule