diff --git a/public/locales/en/translation.json b/public/locales/en/translation.json index 5dfd02bb..15668aca 100644 --- a/public/locales/en/translation.json +++ b/public/locales/en/translation.json @@ -83,6 +83,7 @@ "Comment successfully deleted": "Comment successfully deleted", "Commentator": "Commentator", "Comments": "Comments", + "CommentsWithCount": "{count, plural, =0 {{count} comments} one {{count} comment} few {{count} comments} other {{count} comments}}", "Communities": "Communities", "Community Discussion Rules": "Community Discussion Rules", "Community Principles": "Community Principles", diff --git a/public/locales/ru/translation.json b/public/locales/ru/translation.json index 8c93787b..788d31cc 100644 --- a/public/locales/ru/translation.json +++ b/public/locales/ru/translation.json @@ -88,6 +88,7 @@ "Comment": "Комментировать", "Commentator": "Комментатор", "Comments": "Комментарии", + "CommentsWithCount": "{count, plural, =0 {{count} комментариев} one {{count} комментарий} few {{count} комментария} other {{count} комментариев}}", "Communities": "Сообщества", "Community Discussion Rules": "Правила дискуссий в сообществе", "Community Principles": "Принципы сообщества", diff --git a/src/components/Topic/TopicBadge/TopicBadge.tsx b/src/components/Topic/TopicBadge/TopicBadge.tsx index 9f7f712e..f4767986 100644 --- a/src/components/Topic/TopicBadge/TopicBadge.tsx +++ b/src/components/Topic/TopicBadge/TopicBadge.tsx @@ -115,12 +115,15 @@ export const TopicBadge = (props: Props) => {
- {t('shoutsWithCount', { count: props.topic?.stat?.shouts })} - {t('authorsWithCount', { count: props.topic?.stat?.authors })} + {t('shoutsWithCount', {count: props.topic?.stat?.shouts})} + {t('authorsWithCount', {count: props.topic?.stat?.authors})} - {t('followersWithCount', { count: props.topic?.stat?.followers })} + {t('FollowersWithCount', {count: props.topic?.stat?.followers})} + + {t('CommentsWithCount', {count: props.topic?.stat?.comments ?? 0})} +
- + ) } diff --git a/src/components/Views/AllTopics/AllTopics.tsx b/src/components/Views/AllTopics/AllTopics.tsx index 3fe6243d..fdb8b532 100644 --- a/src/components/Views/AllTopics/AllTopics.tsx +++ b/src/components/Views/AllTopics/AllTopics.tsx @@ -12,7 +12,6 @@ import { capitalize } from '../../../utils/capitalize' import { dummyFilter } from '../../../utils/dummyFilter' import { getImageUrl } from '../../../utils/getImageUrl' import { scrollHandler } from '../../../utils/scroll' -import { TopicCard } from '../../Topic/Card' import { Loading } from '../../_shared/Loading' import { SearchField } from '../../_shared/SearchField'