mirror of
https://github.com/miniflux/v2.git
synced 2025-08-26 18:21:01 +00:00
Add unit test to ensure each translation has the correct number of plurals
This commit is contained in:
parent
347740dce1
commit
1b5edfc00a
8 changed files with 129 additions and 93 deletions
|
@ -25,6 +25,20 @@ func TestPluralRules(t *testing.T) {
|
|||
2: 1,
|
||||
5: 2,
|
||||
},
|
||||
"fr_FR": {
|
||||
1: 0,
|
||||
2: 1,
|
||||
5: 1,
|
||||
},
|
||||
"id_ID": {
|
||||
1: 0,
|
||||
5: 0,
|
||||
},
|
||||
"ja_JP": {
|
||||
1: 0,
|
||||
2: 0,
|
||||
5: 0,
|
||||
},
|
||||
"pl_PL": {
|
||||
1: 0,
|
||||
2: 1,
|
||||
|
@ -45,10 +59,24 @@ func TestPluralRules(t *testing.T) {
|
|||
2: 1,
|
||||
5: 2,
|
||||
},
|
||||
"tr_TR": {
|
||||
1: 0,
|
||||
2: 1,
|
||||
5: 1,
|
||||
},
|
||||
"uk_UA": {
|
||||
1: 0,
|
||||
2: 1,
|
||||
5: 2,
|
||||
},
|
||||
"zh_CN": {
|
||||
1: 0,
|
||||
5: 0,
|
||||
},
|
||||
"zh_TW": {
|
||||
1: 0,
|
||||
5: 0,
|
||||
},
|
||||
}
|
||||
|
||||
for rule, values := range scenarios {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue