From db53848092e70420836f6ede2ed91fd49f76cd36 Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Tue, 13 Oct 2020 15:32:32 +1100 Subject: [PATCH] Enable switching language of "Price breakdown" And move translation to its own context. --- app/assets/javascripts/templates/price_breakdown.html.haml | 2 +- config/locales/en.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/templates/price_breakdown.html.haml b/app/assets/javascripts/templates/price_breakdown.html.haml index 26d3ad70fd..bd4c3bf88f 100644 --- a/app/assets/javascripts/templates/price_breakdown.html.haml +++ b/app/assets/javascripts/templates/price_breakdown.html.haml @@ -2,7 +2,7 @@ %span.joyride-nub.top .background{ng: {click: "tt_isOpen = false"}} .joyride-content-wrapper - %h6= t("price_breakdown") + %h6 {{ "js.shopfront.price_breakdown" | t }} %ul %li .right {{ ::variant.price | localizeCurrency }} diff --git a/config/locales/en.yml b/config/locales/en.yml index 92e5057da3..2536f0bc3c 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -2056,7 +2056,6 @@ See the %{link} to find out more about %{sitename}'s features and to start using shop_for_products_html: "Shop for %{enterprise} products at:" change_shop: "Change shop to:" shop_at: "Shop now at:" - price_breakdown: "Price breakdown" admin_fee: "Admin fee" sales_fee: "Sales fee" packing_fee: "Packing fee" @@ -2737,6 +2736,7 @@ See the %{link} to find out more about %{sitename}'s features and to start using bulk_buy_modal: min_quantity: "Min quantity" max_quantity: "Max quantity" + price_breakdown: "Price breakdown" variants: on_demand: "yes": "On demand"