Skip to content

Commit

Permalink
Merge pull request #6750 from mkllnk/6749-i18n-in-assets
Browse files Browse the repository at this point in the history
 Use JS I18n function in assets to avoid parsing error
  • Loading branch information
Matt-Yorkley authored Jan 28, 2021
2 parents 8a75781 + 06983c4 commit de530c2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ $(document).ready(function() {
if (quantity > maxQuantity) {
quantity = maxQuantity;
save.parents('tr').find('input.line_item_quantity').val(maxQuantity);
alert('<%= I18n.t("js.admin.orders.quantity_adjusted") %>');
alert(t("js.admin.orders.quantity_adjusted"));
}
toggleItemEdit();

Expand Down Expand Up @@ -84,7 +84,7 @@ adjustItems = function(shipment_number, variant_id, quantity){
url += '.json';

if (new_quantity == 0) {
alert('<%= I18n.t("js.admin.orders.quantity_unchanged") %>');
alert(t("js.admin.orders.quantity_unchanged"));
} else {
$.ajax({
type: "PUT",
Expand Down

0 comments on commit de530c2

Please sign in to comment.