diff options
author | joeybloggs <Dean.Karn@gmail.com> | 2016-08-11 05:25:55 +0300 |
---|---|---|
committer | joeybloggs <Dean.Karn@gmail.com> | 2016-08-11 05:25:55 +0300 |
commit | df0d272ef2250baaad947ff65501398623365e61 (patch) | |
tree | 67905e5f9735420445a174eab98d3a42a4b3be43 /rules.go | |
parent | f81dd14d3cd97e875a6241cf395dae384457c455 (diff) |
add range plural rules + expose Ordinal + Cardinal functions
Diffstat (limited to 'rules.go')
-rw-r--r-- | rules.go | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 |