benawad / vsinder

Dating App for VSCode
Apache License 2.0
2.47k stars 175 forks source link

[Enhancement] Language Translation Framework (e.g. "1 likes received") #189

Open nyanpasu64 opened 3 years ago

nyanpasu64 commented 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.

FotieMConstant commented 3 years ago

Hi there, I think for a start using «Like(s)» will do, well just a suggestion.