diff --git a/app/views/shared/menu/_cart_sidebar.html.haml b/app/views/shared/menu/_cart_sidebar.html.haml index d3a5216e86..84d85f95e1 100644 --- a/app/views/shared/menu/_cart_sidebar.html.haml +++ b/app/views/shared/menu/_cart_sidebar.html.haml @@ -3,9 +3,9 @@ .sidebar .cart-header %span.title - 5 items in your cart + = t('.items_in_cart', num: "{{ Cart.total_item_count() }}") %a.close{ng: {click: 'toggleCartSidebar()'}} - Close + = t('.close') %i.ofn-i_009-close .cart-content %table @@ -29,6 +29,6 @@ {{ Cart.total() | localizeCurrency }} %button.large.dark.left{href: main_app.cart_path, "ng-disabled" => "Cart.dirty || Cart.empty()", "ng-class" => "{ dirty: Cart.dirty }"} - = "{{ Cart.dirty ? '#{t(:cart_updating)}' : (Cart.empty() ? '#{t(:cart_empty)}' : '#{t(:cart_edit)}' ) }}" + = "{{ Cart.dirty ? '#{t(:cart_updating)}' : (Cart.empty() ? '#{t(:cart_empty)}' : '#{t('.edit_cart')}' ) }}" %button.large.bright.right{href: main_app.checkout_path, "ng-disabled" => "Cart.dirty || Cart.empty()"} = t '.checkout' diff --git a/config/locales/en.yml b/config/locales/en.yml index 5b89620b2b..996294ad01 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1216,6 +1216,11 @@ en: menu: cart: cart: "Cart" + cart_sidebar: + checkout: "Checkout" + edit_cart: "Edit cart" + items_in_cart: "%{num} items in your cart" + close: "Close" signed_in: profile: "Profile" mobile_menu: