MM-57221 - Adding formattedMessage to reply count (#26472)

This commit is contained in:
Asaad Mahmood 2024-03-14 15:11:18 +05:00 committed by GitHub
parent 2cb664c604
commit 6d0f40c9aa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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>
)}
</>