1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-09-15 18:57:04 +00:00

feat(locale): add Romanian translation

This contribution was sent outside GitHub. Credit to Laurentiu.
This commit is contained in:
Frédéric Guillot 2025-03-28 10:57:15 -07:00
parent b3d385861f
commit 6e3cecc57e
5 changed files with 665 additions and 25 deletions

View file

@ -71,6 +71,16 @@ var pluralForms = map[string]func(n int) int{
}
return 0
},
// nplurals=3; plural=(n==1 ? 0 : n==0 || (n%100 > 0 && n%100 < 20) ? 1 : 2);
"ro_RO": func(n int) int {
switch {
case n == 1:
return 0
case n == 0 || (n%100 > 0 && n%100 < 20):
return 1
}
return 2
},
"ru_RU": pluralFormRuSrUa,
// nplurals=2; plural=(n > 1);
"tr_TR": func(n int) int {