-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathtypes.go
45 lines (36 loc) · 1.03 KB
/
types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package goeasyi18n
type TranslateString struct {
Key string
Default string
// For pluralization
Zero string // Optional
One string // Optional
Two string // Optional
Few string // Optional
Many string // Optional
// For genders
Male string // Optional
Female string // Optional
NonBinary string // Optional
// For pluralization with male gender
ZeroMale string // Optional
OneMale string // Optional
TwoMale string // Optional
FewMale string // Optional
ManyMale string // Optional
// For pluralization with female gender
ZeroFemale string // Optional
OneFemale string // Optional
TwoFemale string // Optional
FewFemale string // Optional
ManyFemale string // Optional
// For pluralization with non binary gender
ZeroNonBinary string // Optional
OneNonBinary string // Optional
TwoNonBinary string // Optional
FewNonBinary string // Optional
ManyNonBinary string // Optional
}
type TranslateStrings []TranslateString
type PluralizationFunc func(count int) string
type Data map[string]any