mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-04 22:16:08 +00:00
Use plural or singular description in cart, depending on number of items
This commit is contained in:
@@ -2,8 +2,10 @@
|
||||
.background{ng: {click: 'toggleCartSidebar()'}}
|
||||
.sidebar
|
||||
.cart-header
|
||||
%span.title{"ng-show" => "Cart.line_items.length > 0"}
|
||||
= t('.items_in_cart', num: "{{ Cart.total_item_count() }}")
|
||||
%span.title{"ng-show" => "Cart.line_items.length == 1"}
|
||||
= t('.items_in_cart_singular', num: "{{ Cart.total_item_count() }}")
|
||||
%span.title{"ng-show" => "Cart.line_items.length > 1"}
|
||||
= t('.items_in_cart_plural', num: "{{ Cart.total_item_count() }}")
|
||||
%a.close{ng: {click: 'toggleCartSidebar()'}}
|
||||
= t('.close')
|
||||
%i.ofn-i_009-close
|
||||
|
||||
@@ -1219,7 +1219,8 @@ en:
|
||||
cart_sidebar:
|
||||
checkout: "Checkout"
|
||||
edit_cart: "Edit cart"
|
||||
items_in_cart: "%{num} items in your cart"
|
||||
items_in_cart_singular: "%{num} item in your cart"
|
||||
items_in_cart_plural: "%{num} items in your cart"
|
||||
close: "Close"
|
||||
cart_empty: "Your cart is empty"
|
||||
take_me_shopping: "Take me shopping!"
|
||||
|
||||
Reference in New Issue
Block a user