]> cat aescling's git repositories - mastodon.git/commitdiff
Fix wrong pluralization in hashtag component in web UI (#11754)
authorEugen Rochko <eugen@zeonfederated.com>
Wed, 4 Sep 2019 02:14:13 +0000 (04:14 +0200)
committerGitHub <noreply@github.com>
Wed, 4 Sep 2019 02:14:13 +0000 (04:14 +0200)
app/javascript/mastodon/components/hashtag.js

index 2456eac9e685a0707a83f68029a5dc19f3ef5594..68b9be72d3e38495408b966d94b1b1f44787040f 100644 (file)
@@ -12,7 +12,7 @@ const Hashtag = ({ hashtag }) => (
         #<span>{hashtag.get('name')}</span>
       </Permalink>
 
-      <FormattedMessage id='trends.count_by_accounts' defaultMessage='{count} {rawCount, plural, one {person} other {people}} talking' values={{ rawCount: hashtag.getIn(['history', 0, 'accounts']), count: <strong>{shortNumberFormat(hashtag.getIn(['history', 0, 'accounts']) + hashtag.getIn(['history', 1, 'accounts']))}</strong> }} />
+      <FormattedMessage id='trends.count_by_accounts' defaultMessage='{count} {rawCount, plural, one {person} other {people}} talking' values={{ rawCount: hashtag.getIn(['history', 0, 'accounts']) + hashtag.getIn(['history', 1, 'accounts']), count: <strong>{shortNumberFormat(hashtag.getIn(['history', 0, 'accounts']) + hashtag.getIn(['history', 1, 'accounts']))}</strong> }} />
     </div>
 
     <div className='trends__item__current'>