mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
MM-57221 - Adding formattedMessage to reply count (#26472)
This commit is contained in:
parent
2cb664c604
commit
6d0f40c9aa
@ -2,6 +2,7 @@
|
||||
// See LICENSE.txt for license information.
|
||||
|
||||
import React, {memo} from 'react';
|
||||
import {FormattedMessage} from 'react-intl';
|
||||
|
||||
import type {Post} from '@mattermost/types/posts';
|
||||
|
||||
@ -79,7 +80,13 @@ function ThreadViewerRow({
|
||||
/>
|
||||
{replyCount > 0 && (
|
||||
<div className='root-post__divider'>
|
||||
<div>{`${replyCount} Replies`}</div>
|
||||
<div>
|
||||
<FormattedMessage
|
||||
id='threading.numReplies'
|
||||
defaultMessage='{replyCount, plural, =0 {Reply} =1 {# reply} other {# replies}}'
|
||||
values={{replyCount}}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
</>
|
||||
|
Loading…
Reference in New Issue
Block a user