MM-57221 - Adding formattedMessage to reply count (#26472)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
2cb664c604
Коммит
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>
|
||||
)}
|
||||
</>
|
||||
|
||||
Ссылка в новой задаче
Block a user