Open nyanpasu64 opened 3 years ago
In the English language, when you've received 1 like from another person, the VSCode extension says "1 likes received" instead of "1 like received".
The simple approach is to branch on n >= 2. The "big picture" solution (generalizing across languages other than English) is to use a translation framework. I don't have experience using translation frameworks, but https://hacks.mozilla.org/2019/04/fluent-1-0-a-localization-system-for-natural-sounding-translations/ seems like an interesting approach to pluralization and word forms.
n >= 2
Hi there, I think for a start using «Like(s)» will do, well just a suggestion.
In the English language, when you've received 1 like from another person, the VSCode extension says "1 likes received" instead of "1 like received".
The simple approach is to branch on
n >= 2
. The "big picture" solution (generalizing across languages other than English) is to use a translation framework. I don't have experience using translation frameworks, but https://hacks.mozilla.org/2019/04/fluent-1-0-a-localization-system-for-natural-sounding-translations/ seems like an interesting approach to pluralization and word forms.