Move a group of translations related to customers to the js translations namespace

This commit is contained in:
luisramos0
2019-04-15 17:31:57 +01:00
parent 9662323261
commit a1905e43f7
2 changed files with 10 additions and 8 deletions

View File

@@ -1,15 +1,15 @@
#new-customer-dialog
.text-normal.margin-bottom-30.text-center
{{ 'admin.customers.index.add_a_new_customer_for' | t:{ shop_name: CurrentShop.shop.name } }}
{{ 'js.admin.customers.index.add_a_new_customer_for' | t:{ shop_name: CurrentShop.shop.name } }}
%form{ name: 'new_customer_form', novalidate: true, ng: { submit: "addCustomer()" }}
.text-center.margin-bottom-30
%input.fullwidth{ type: 'email', name: 'email', required: true, placeholder: t('admin.customers.index.customer_placeholder'), ng: { model: "email" } }
%input.fullwidth{ type: 'email', name: 'email', required: true, placeholder: "{{ 'js.admin.customers.index.customer_placeholder' | t }}", ng: { model: "email" } }
%div{ ng: { show: "submitted && new_customer_form.$pristine" } }
.error{ ng: { show: "(new_customer_form.email.$error.email || new_customer_form.email.$error.required)" } }
{{ 'admin.customers.index.valid_email_error' | t }}
{{ 'js.admin.customers.index.valid_email_error' | t }}
.error{ ng: { repeat: "error in errors", bind: "error" } }
.text-center
%input.button.red.icon-plus{ type: 'submit', value: t('admin.customers.index.add_customer') }
%input.button.red.icon-plus{ type: 'submit', value: "{{ 'js.admin.customers.index.add_customer' | t }}" }

View File

@@ -396,11 +396,7 @@ en:
customers:
index:
add_customer: "Add Customer"
new_customer: "New Customer"
customer_placeholder: "customer@example.org"
valid_email_error: Please enter a valid email address
add_a_new_customer_for: Add a new customer for %{shop_name}
code: Code
duplicate_code: "This code is used already."
bill_address: "Billing Address"
@@ -2554,6 +2550,12 @@ See the %{link} to find out more about %{sitename}'s features and to start using
no_order_cycles_error: "Please select at least one order cycle (drag and drop)"
available: "Available"
selected: "Selected"
customers:
index:
add_customer: "Add Customer"
add_a_new_customer_for: "Add a new customer for %{shop_name}"
customer_placeholder: "customer@example.org"
valid_email_error: "Please enter a valid email address"
insufficient_stock: "Insufficient stock available, only %{on_hand} remaining"
out_of_stock:
reduced_stock_available: Reduced stock available