diff options
Diffstat (limited to 'sq/sq.go')
-rw-r--r-- | sq/sq.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -65,8 +65,8 @@ func (sq *sq) CardinalPluralRule(num float64, v uint64) locales.PluralRule { func (sq *sq) OrdinalPluralRule(num float64, v uint64) locales.PluralRule { n := math.Abs(num) - nMod100 := math.Mod(n, 100) nMod10 := math.Mod(n, 10) + nMod100 := math.Mod(n, 100) if n == 1 { return locales.PluralRuleOne @@ -170,7 +170,7 @@ func (sq *sq) FmtPercent(num float64, v uint64) []byte { b[i], b[j] = b[j], b[i] } - b = append(b, sq.Percent[0]) + b = append(b, sq.percent...) return b } |