1
0
Fork 0
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:
Frédéric Guillot 2024-02-29 20:20:29 -08:00
parent 347740dce1
commit 1b5edfc00a
8 changed files with 129 additions and 93 deletions

View file

@ -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 {