]> cat aescling's git repositories - mastodon.git/commitdiff
[Glitch] Fix wrong pluralization in hashtag component in web UI
authorEugen Rochko <eugen@zeonfederated.com>
Wed, 4 Sep 2019 02:14:13 +0000 (04:14 +0200)
committerThibaut Girka <thib@sitedethib.com>
Thu, 5 Sep 2019 12:11:52 +0000 (14:11 +0200)
Port 1a00bd9244ee8555d7401f4f0ee01ec381e96c1c to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
app/javascript/flavours/glitch/components/hashtag.js

index 426f7ecb059a3fe7e6560f0d94d5197807800be1..03c8b6e3a310c12782a9d99328a36b3dcbb86b8e 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'>