langs/i18n: Improve plural handling of floats

The go-i18n library expects plural counts with floats to be represented as strings.

Fixes #8464
This commit is contained in:
Bjørn Erik Pedersen
2021-04-24 12:26:51 +02:00
parent e4dc9a82b5
commit eebde0c2ac
3 changed files with 127 additions and 22 deletions

View File

@@ -27,6 +27,12 @@ type RLocker interface {
RUnlock()
}
// KeyValue is a interface{} tuple.
type KeyValue struct {
Key interface{}
Value interface{}
}
// KeyValueStr is a string tuple.
type KeyValueStr struct {
Key string