]> cat aescling's git repositories - mastodon.git/commitdiff
[Glitch] Fix following_counter plural to include "one"
authorSasha Sorokin <dafri.nochiterov8@gmail.com>
Fri, 17 Jul 2020 05:08:23 +0000 (12:08 +0700)
committerThibaut Girka <thib@sitedethib.com>
Wed, 22 Jul 2020 11:50:58 +0000 (13:50 +0200)
Port 17b1d71536609c6deabcf3b13ec9be0ec9fd793f to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
app/javascript/flavours/glitch/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),