Skip to content

Commit 16d4956

Browse files
chore(promotions): PROMO-1562 fix plural for featured promotion callouts
1 parent 41828b9 commit 16d4956

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lang/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,7 @@
837837
},
838838
"card_default_image_alt": "Image coming soon",
839839
"featured_promotions": {
840-
"more_offers": "more offers"
840+
"more_offers": "{count, plural, one {more offer} other {more offers}}"
841841
}
842842
},
843843
"invoice": {

templates/components/products/promotion-callout.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<span class="promotionCallout-text">{{promotions.[0].text}}</span>
66
{{#if promotions.[1]}}
77
<span class="promotionCallout-more">
8-
+{{subtract promotions.length 1}} {{lang 'products.featured_promotions.more_offers'}}
8+
+{{subtract promotions.length 1}} {{lang 'products.featured_promotions.more_offers' count=(subtract promotions.length 1)}}
99
</span>
1010
{{/if}}
1111
</div>

0 commit comments

Comments
 (0)