Replies: 1 comment
-
Weblate follows CLDR naming in plurals, see http://www.unicode.org/cldr/charts/44/supplemental/language_plural_rules.html#ar |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello Team,
While testing the Arabic translation feature, I noticed that the current handling of plural categories may not align with Arabic grammar rules.
Based on my understanding as a native speaker, I suggest the following logic:
0 → plural
1 → singular
2 → dual
3–10 → plural
11+ → singular (used in a specific grammatical structure)
I checked the Unicode documentation but couldn’t find clear guidance, so I’m sharing this reference instead:
👉 The Grammar of Using Arabic Numbers – The Arabic Pages
Here’s a simple JS function reflecting this logic:
function getArabicPluralForm(n) {
if (n === 0) return "plural";
if (n === 1) return "singular";
if (n === 2) return "dual";
if (n >= 3 && n <= 10) return "plural";
if (n >= 11) return "singular";
}
Could you please verify if this logic is correct from your side or let me know if there's another standard being followed?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions