Refactor unit price i18n keys

- Now got two keys: `js.admin.unit_price_tooltip` and `js.shopfront.unit_price_tooltip`
This commit is contained in:
Jean-Baptiste Bellet
2021-03-25 17:59:20 +01:00
parent 0f5af2d9f1
commit 5c93ccc0e3
5 changed files with 7 additions and 6 deletions

View File

@@ -13,7 +13,7 @@
"question-mark-with-tooltip-append-to-body" => "true",
"question-mark-with-tooltip-placement" => "top",
"question-mark-with-tooltip-animation" => true,
key: "'js.shopfront.unit_price_tooltip.shopfront'"}
key: "'js.shopfront.unit_price_tooltip'"}
{{ variant.unit_price_price | localizeCurrency }} / {{ variant.unit_price_unit }}
.medium-2.large-2.columns.total-price

View File

@@ -30,6 +30,7 @@
"question-mark-with-tooltip-append-to-body" => "true",
"question-mark-with-tooltip-placement" => "top",
"question-mark-with-tooltip-animation" => true,
key: "'js.shopfront.unit_price_tooltip'",
context: "'cart-sidebar'"}
.options-text
{{ line_item.variant.unit_price_price | localizeCurrency }} / {{ line_item.variant.unit_price_unit }}

View File

@@ -60,7 +60,7 @@
"question-mark-with-tooltip-append-to-body" => "true",
"question-mark-with-tooltip-placement" => "top",
"question-mark-with-tooltip-animation" => true,
key: "'js.shopfront.unit_price_tooltip.admin'"}
key: "'js.admin.unit_price_tooltip'"}
%br/
= f.text_field :price, {"class" => 'fullwidth', "disabled" => true, "ng-model" => "unit_price"}
%div{style: "color: black"}

View File

@@ -44,7 +44,7 @@
"question-mark-with-tooltip-append-to-body" => "true",
"question-mark-with-tooltip-placement" => "top",
"question-mark-with-tooltip-animation" => true,
key: "'js.shopfront.unit_price_tooltip.admin'"}
key: "'js.admin.unit_price_tooltip'"}
%br/
= f.text_field :price, {"class" => 'fullwidth', "disabled" => true, "ng-model" => "unit_price"}
%div{style: "color: black"}

View File

@@ -2551,6 +2551,7 @@ See the %{link} to find out more about %{sitename}'s features and to start using
There was a problem adding this product to the cart.
Perhaps it has become unavailable or the shop is closing.
admin:
unit_price_tooltip: "The unit price increases transparency by allowing your customers to easily compare prices between different products and packaging sizes. Note, that the final unit price displayed in the shopfront might differ as it is includes taxes & fees."
enterprise_limit_reached: "You have reached the standard limit of enterprises per account. Write to %{contact_email} if you need to increase it."
modals:
got_it: "Got it"
@@ -2789,9 +2790,7 @@ See the %{link} to find out more about %{sitename}'s features and to start using
min_quantity: "Min quantity"
max_quantity: "Max quantity"
price_breakdown: "Price breakdown"
unit_price_tooltip:
shopfront: "This is the unit price of this product. It allows you to compare the price of products independent of packaging sizes & weights."
admin: "The unit price increases transparency by allowing your customers to easily compare prices between different products and packaging sizes. Note, that the final unit price displayed in the shopfront might differ as it is includes taxes & fees."
unit_price_tooltip: "This is the unit price of this product. It allows you to compare the price of products independent of packaging sizes & weights."
variants:
on_demand:
"yes": "On demand"
@@ -3258,6 +3257,7 @@ See the %{link} to find out more about %{sitename}'s features and to start using
header:
store: Store
admin:
unit_price_tooltip: "The unit price increases transparency by allowing your customers to easily compare prices between different products and packaging sizes. Note, that the final unit price displayed in the shopfront might differ as it is includes taxes & fees."
tab:
dashboard: "Dashboard"
orders: "Orders"