You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On the report page of all games that have more than 1 report the translation is incorrectly used when describing the amount of reports that have been created for it. Instead of actually using the plural form of "report", it merely appends an "s" to it which is not how plural works in Swedish. I have only been able to verify this in Swedish, however it seems to do the same in other languages that use the Latin alphabet, or a variant thereof.
This text should be 29 rapporter
The text was updated successfully, but these errors were encountered:
Thanks @Newbytee for formally making an issue for this.
Currently ProtonDB uses the English-only pluralize library, which far as I can read does not have an internationalized strategy for counting.
Mozilla is guiding folks to use Intl.PluralRules for this. Its lack of support on Safari would mean I'd want to also find a polyfill, for which there are a handful. There's another article from them on this more broadly as well as this more robust chart that tries to enumerate the variance across even more languages.
From what I'm gathering of that documentation it looks like it would impact our localization bundles towards this example for all cases that may be pluralized:
I'd rather not build-my-own on this and am hoping there's a library that will suffice, ideally one that hooks into the broader i18next engine I'm already using. Here is their take on it, which looks uncomfortably ad hoc / unfinished to me. It leans on adding along with {key}, a {key}_plural and {key}_interval node which relies on semicolon-delimited expressions for the various pluralization categories.
On the report page of all games that have more than 1 report the translation is incorrectly used when describing the amount of reports that have been created for it. Instead of actually using the plural form of "report", it merely appends an "s" to it which is not how plural works in Swedish. I have only been able to verify this in Swedish, however it seems to do the same in other languages that use the Latin alphabet, or a variant thereof.
This text should be 29 rapporter
The text was updated successfully, but these errors were encountered: