UX: Suppress "replies" when there are many replies in the timeline

This commit is contained in:
Robin Ward 2016-05-19 13:38:18 -04:00
parent 2bd59d7ca1
commit a8251b3036
No known key found for this signature in database
GPG Key ID: 0E091E2B4ED1B83D
2 changed files with 3 additions and 1 deletions

View File

@ -41,8 +41,9 @@ createWidget('timeline-scroller', {
html(attrs) {
const { current, total, date } = attrs;
const repliesKey = (total < 1000) ? 'replies' : 'replies_short';
const contents = [
h('div.timeline-replies', I18n.t('topic.timeline.replies', { current, total }))
h('div.timeline-replies', I18n.t(`topic.timeline.${repliesKey}`, { current, total }))
];
if (date) {

View File

@ -1291,6 +1291,7 @@ en:
timeline:
replies: "%{current} / %{total} replies"
replies_short: "%{current} / %{total}"
progress:
title: topic progress