diff --git a/webshop/templates/includes/cart/cart_address.html b/webshop/templates/includes/cart/cart_address.html
index e7065c4305..2c1ef0648d 100644
--- a/webshop/templates/includes/cart/cart_address.html
+++ b/webshop/templates/includes/cart/cart_address.html
@@ -28,7 +28,7 @@
@@ -70,38 +70,38 @@
$('.btn-new-address').click(() => {
const d = new frappe.ui.Dialog({
- title: __('New Address'),
+ title: {{ _("New Address") }},
fields: [
{
- label: __('Address Title'),
+ label: {{ _("Address Title") }},
fieldname: 'address_title',
fieldtype: 'Data',
reqd: 1
},
{
- label: __('Address Line 1'),
+ label: {{ _("Address Line 1") }},
fieldname: 'address_line1',
fieldtype: 'Data',
reqd: 1
},
{
- label: __('Address Line 2'),
+ label: {{ _("'Address Line 2") }},
fieldname: 'address_line2',
fieldtype: 'Data'
},
{
- label: __('City/Town'),
+ label: {{ _("City/Town") }},
fieldname: 'city',
fieldtype: 'Data',
reqd: 1
},
{
- label: __('State'),
+ label: {{ _("State") }},
fieldname: 'state',
fieldtype: 'Data'
},
{
- label: __('Country'),
+ label: {{ _("Country") }},
fieldname: 'country',
fieldtype: 'Link',
options: 'Country',
@@ -114,7 +114,7 @@
width: "50%"
},
{
- label: __('Address Type'),
+ label: {{ _("Address Type") }},
fieldname: 'address_type',
fieldtype: 'Select',
options: [
@@ -124,18 +124,18 @@
reqd: 1
},
{
- label: __('Postal Code'),
+ label: {{ _("Postal Code") }},
fieldname: 'pincode',
fieldtype: 'Data'
},
{
fieldname: "phone",
fieldtype: "Data",
- label: "Phone",
+ label: {{ _("Phone") }},
reqd: 1
},
],
- primary_action_label: __('Save'),
+ primary_action_label: {{ _("Save") }},
primary_action: (values) => {
frappe.call('webshop.webshop.shopping_cart.cart.add_new_address', { doc: values })
.then(r => {
@@ -191,12 +191,12 @@
frappe.ready(() => {
function get_update_address_dialog() {
let d = new frappe.ui.Dialog({
- title: "Select Address",
+ title: {{ _("Select Address") }},
fields: [{
'fieldtype': 'HTML',
'fieldname': 'address_picker',
}],
- primary_action_label: __('Set Address'),
+ primary_action_label: {{ _("Set Address") }},
primary_action: () => {
const $card = d.$wrapper.find('.address-card.active');
const address_type = $card.closest('[data-address-type]').attr('data-address-type');
@@ -261,4 +261,4 @@
d.show();
});
});
-
\ No newline at end of file
+