]> cat aescling's git repositories - mastodon.git/commitdiff
Fix following_counter plural to include "one" (#14342)
authorSasha Sorokin <dafri.nochiterov8@gmail.com>
Fri, 17 Jul 2020 05:08:23 +0000 (12:08 +0700)
committerGitHub <noreply@github.com>
Fri, 17 Jul 2020 05:08:23 +0000 (07:08 +0200)
That should've worked just fine, but unfortunately, Crowdin wasn't able
to pick up on our non-existent "one" category, thus appending empty
translation block to people's translations. Empty block WILL BE used by
any ICU FormatMessage library, thus resulting in an empty translation
for "one" category, and that requires immediate fix.

This commit duplicates contents of the "other" plural category.

app/javascript/mastodon/components/common_counter.js

index 4fdf3babfdad12a9540c6d21127c866584a86459..e10cd9b765206fce737b512efe1e302fda214ee1 100644 (file)
@@ -37,7 +37,7 @@ export function counterRenderer(counterType, isBold = true) {
     return (displayNumber, pluralReady) => (
       <FormattedMessage
         id='account.following_counter'
-        defaultMessage='{count, plural, other {{counter} Following}}'
+        defaultMessage='{count, plural, one {{counter} Following} other {{counter} Following}}'
         values={{
           count: pluralReady,
           counter: renderCounter(displayNumber),