diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2021-04-24 12:26:51 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2021-04-25 11:12:30 +0200 |
commit | eebde0c2ac4964e91d26d8b0cf0ac43afcfd207f (patch) | |
tree | 64535728c467d3e01f3b9b08d37576b89f669bf3 /common/types | |
parent | e4dc9a82b557a417b1552c533b0df605c6ff1cc0 (diff) |
langs/i18n: Improve plural handling of floats
The go-i18n library expects plural counts with floats to be represented as strings.
Fixes #8464
Diffstat (limited to 'common/types')
-rw-r--r-- | common/types/types.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/common/types/types.go b/common/types/types.go index 04a27766e..4f9f02c8d 100644 --- a/common/types/types.go +++ b/common/types/types.go @@ -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 |