diff --git a/webshop/public/js/customer_reviews.js b/webshop/public/js/customer_reviews.js index 8dc3e97316..bbef63883e 100644 --- a/webshop/public/js/customer_reviews.js +++ b/webshop/public/js/customer_reviews.js @@ -50,7 +50,7 @@ $(() => { } }); }, - primary_action_label: __('Submit') + primary_action_label: __("Submit") }); d.show(); }); diff --git a/webshop/public/js/product_ui/grid.js b/webshop/public/js/product_ui/grid.js index 8af8f74946..0212d823a2 100644 --- a/webshop/public/js/product_ui/grid.js +++ b/webshop/public/js/product_ui/grid.js @@ -133,7 +133,7 @@ webshop.ProductGrid = class { ${ item.formatted_mrp ? item.formatted_mrp.replace(/ +/g, "") : "" } - ${ item.discount } OFF + ${ item.discount } ${ __("OFF") } `; } @@ -166,7 +166,7 @@ webshop.ProductGrid = class { return `
- ${ __('Explore') } + ${ __("Explore") }
`; @@ -181,7 +181,7 @@ webshop.ProductGrid = class { - ${ settings.enable_checkout ? __('Add to Cart') : __('Add to Quote') } + ${ settings.enable_checkout ? __("Add to Cart") : __("Add to Quote") } @@ -190,7 +190,7 @@ webshop.ProductGrid = class { w-100 mt-4 go-to-cart-grid ${ item.in_cart ? '' : 'hidden' }" data-item-code="${ item.item_code }"> - ${ settings.enable_checkout ? __('Go to Cart') : __('Go to Quote') } + ${ settings.enable_checkout ? __("Go to Cart") : __("Go to Quote") } `; diff --git a/webshop/public/js/product_ui/list.js b/webshop/public/js/product_ui/list.js index 7d84951d69..08102f3034 100644 --- a/webshop/public/js/product_ui/list.js +++ b/webshop/public/js/product_ui/list.js @@ -113,7 +113,7 @@ webshop.ProductList = class { ${ item.formatted_mrp ? item.formatted_mrp.replace(/ +/g, "") : "" } - ${ item.discount } OFF + ${ item.discount } ${ __("OFF") } `; } @@ -167,7 +167,7 @@ webshop.ProductList = class { return `
- ${ __('Explore') } + ${ __("Explore") }
`; @@ -184,7 +184,7 @@ webshop.ProductList = class { - ${ settings.enable_checkout ? __('Add to Cart') : __('Add to Quote') } + ${ settings.enable_checkout ? __("Add to Cart") : __("Add to Quote") }
@@ -198,7 +198,7 @@ webshop.ProductList = class { ${ item.in_cart ? '' : 'hidden' }" data-item-code="${ item.item_code }" style="padding: 0.25rem 1rem; min-width: 135px;"> - ${ settings.enable_checkout ? __('Go to Cart') : __('Go to Quote') } + ${ settings.enable_checkout ? __("Go to Cart") : __("Go to Quote") }
`; diff --git a/webshop/public/js/product_ui/search.js b/webshop/public/js/product_ui/search.js index d7f3c712f2..242941f432 100644 --- a/webshop/public/js/product_ui/search.js +++ b/webshop/public/js/product_ui/search.js @@ -164,7 +164,7 @@ webshop.ProductSearch = class { let recents = this.getRecentSearches(); if (!recents.length) { - this.recents_container.html(`No searches yet.`); + this.recents_container.html(`${ __("No searches yet.") }`); return; } diff --git a/webshop/public/js/product_ui/views.js b/webshop/public/js/product_ui/views.js index f355e51610..3863ff8c74 100644 --- a/webshop/public/js/product_ui/views.js +++ b/webshop/public/js/product_ui/views.js @@ -188,7 +188,7 @@ webshop.ProductView = class {