topics-comments
This commit is contained in:
parent
4a1ad2b5af
commit
626624ddb4
|
@ -83,6 +83,7 @@
|
||||||
"Comment successfully deleted": "Comment successfully deleted",
|
"Comment successfully deleted": "Comment successfully deleted",
|
||||||
"Commentator": "Commentator",
|
"Commentator": "Commentator",
|
||||||
"Comments": "Comments",
|
"Comments": "Comments",
|
||||||
|
"CommentsWithCount": "{count, plural, =0 {{count} comments} one {{count} comment} few {{count} comments} other {{count} comments}}",
|
||||||
"Communities": "Communities",
|
"Communities": "Communities",
|
||||||
"Community Discussion Rules": "Community Discussion Rules",
|
"Community Discussion Rules": "Community Discussion Rules",
|
||||||
"Community Principles": "Community Principles",
|
"Community Principles": "Community Principles",
|
||||||
|
|
|
@ -88,6 +88,7 @@
|
||||||
"Comment": "Комментировать",
|
"Comment": "Комментировать",
|
||||||
"Commentator": "Комментатор",
|
"Commentator": "Комментатор",
|
||||||
"Comments": "Комментарии",
|
"Comments": "Комментарии",
|
||||||
|
"CommentsWithCount": "{count, plural, =0 {{count} комментариев} one {{count} комментарий} few {{count} комментария} other {{count} комментариев}}",
|
||||||
"Communities": "Сообщества",
|
"Communities": "Сообщества",
|
||||||
"Community Discussion Rules": "Правила дискуссий в сообществе",
|
"Community Discussion Rules": "Правила дискуссий в сообществе",
|
||||||
"Community Principles": "Принципы сообщества",
|
"Community Principles": "Принципы сообщества",
|
||||||
|
|
|
@ -115,12 +115,15 @@ export const TopicBadge = (props: Props) => {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class={styles.stats}>
|
<div class={styles.stats}>
|
||||||
<span class={styles.statsItem}>{t('shoutsWithCount', { count: props.topic?.stat?.shouts })}</span>
|
<span class={styles.statsItem}>{t('shoutsWithCount', {count: props.topic?.stat?.shouts})}</span>
|
||||||
<span class={styles.statsItem}>{t('authorsWithCount', { count: props.topic?.stat?.authors })}</span>
|
<span class={styles.statsItem}>{t('authorsWithCount', {count: props.topic?.stat?.authors})}</span>
|
||||||
<span class={styles.statsItem}>
|
<span class={styles.statsItem}>
|
||||||
{t('followersWithCount', { count: props.topic?.stat?.followers })}
|
{t('FollowersWithCount', {count: props.topic?.stat?.followers})}
|
||||||
</span>
|
</span>
|
||||||
|
<Show when={props.topic?.stat?.comments}>
|
||||||
|
<span class={styles.statsItem}>{t('CommentsWithCount', {count: props.topic?.stat?.comments ?? 0})}</span>
|
||||||
|
</Show>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,6 @@ import { capitalize } from '../../../utils/capitalize'
|
||||||
import { dummyFilter } from '../../../utils/dummyFilter'
|
import { dummyFilter } from '../../../utils/dummyFilter'
|
||||||
import { getImageUrl } from '../../../utils/getImageUrl'
|
import { getImageUrl } from '../../../utils/getImageUrl'
|
||||||
import { scrollHandler } from '../../../utils/scroll'
|
import { scrollHandler } from '../../../utils/scroll'
|
||||||
import { TopicCard } from '../../Topic/Card'
|
|
||||||
import { Loading } from '../../_shared/Loading'
|
import { Loading } from '../../_shared/Loading'
|
||||||
import { SearchField } from '../../_shared/SearchField'
|
import { SearchField } from '../../_shared/SearchField'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user