You've probably done something like this before:


if ( X === 1 ) {
return "There is one result";
}
else {
return "There are " + X + " results";
}
What about if you're translating to a language that has more than 2 cases to pluralize (e.g. specific case for 1, specific case for 2, specific case for 2+)?

This is a great discussion that sheds some light on this and even more complex localization problems and suggests a potential solution.
Shared publiclyView activity