When list has just one card, to show 'card' instead of 'cards'
@@ -20,7 +20,7 @@ template(name="listHeader")
if showCardsCountForList cards.count
|
- span(class="cardCount") {{cardsCount}} {{_ 'cards-count'}}
+ span(class="cardCount") {{cardsCount}} {{cardsCountForListIsOne cards.count}}
if isMiniScreen
if currentList
if isWatching
@@ -85,6 +85,14 @@ BlazeComponent.extendComponent({
return limit >= 0 && count >= limit;
},
+ cardsCountForListIsOne(count) {
+ if (count === 1) {
+ return TAPi18n.__('cards-count-one');
+ } else {
+ return TAPi18n.__('cards-count');
+ }
+ },
+
events() {
return [
{