about summary refs log tree commit diff
path: root/app/javascript
diff options
context:
space:
mode:
authorSasha Sorokin <dafri.nochiterov8@gmail.com>2020-07-17 12:08:23 +0700
committerGitHub <noreply@github.com>2020-07-17 07:08:23 +0200
commit17b1d71536609c6deabcf3b13ec9be0ec9fd793f (patch)
treefdf36a7d02cdae1cf52cd5add9cdd48aa8f38264 /app/javascript
parent322d74fc2aa9db2d05e5bad944661c6edf1660e1 (diff)
Fix following_counter plural to include "one" (#14342)
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.
Diffstat (limited to 'app/javascript')
-rw-r--r--app/javascript/mastodon/components/common_counter.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/mastodon/components/common_counter.js b/app/javascript/mastodon/components/common_counter.js
index 4fdf3babf..e10cd9b76 100644
--- a/app/javascript/mastodon/components/common_counter.js
+++ b/app/javascript/mastodon/components/common_counter.js
@@ -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),