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

Этот коммит содержится в:
Asaad Mahmood
2024-03-14 15:11:18 +05:00
коммит произвёл GitHub
родитель 2cb664c604
Коммит 6d0f40c9aa

Просмотреть файл

@@ -2,6 +2,7 @@
// See LICENSE.txt for license information. // See LICENSE.txt for license information.
import React, {memo} from 'react'; import React, {memo} from 'react';
import {FormattedMessage} from 'react-intl';
import type {Post} from '@mattermost/types/posts'; import type {Post} from '@mattermost/types/posts';
@@ -79,7 +80,13 @@ function ThreadViewerRow({
/> />
{replyCount > 0 && ( {replyCount > 0 && (
<div className='root-post__divider'> <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> </div>
)} )}
</> </>