From d9a82a4167b272157d90443458ccf99e23381c5f Mon Sep 17 00:00:00 2001 From: Yevhenii Buliuk <82589781+bc-yevhenii-buliuk@users.noreply.github.com> Date: Mon, 24 May 2021 20:26:10 +0300 Subject: [PATCH] fix(storefront): BCTHEME-496 Translation Gap: Delete from Cart confirmation popup. (#2065) --- CHANGELOG.md | 1 + assets/js/theme/cart.js | 1 + templates/pages/cart.html | 1 + 3 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 589491997a..7df07fd393 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # Changelog ## Draft +- Translation Gap: Delete from Cart confirmation popup. [#2065](https://github.com/bigcommerce/cornerstone/pull/2065) ## 5.5.0 (05-20-2021) - Scale focus trap for all modals. [#2049](https://github.com/bigcommerce/cornerstone/pull/2049) diff --git a/assets/js/theme/cart.js b/assets/js/theme/cart.js index 347eb08522..1d8f1c83ce 100644 --- a/assets/js/theme/cart.js +++ b/assets/js/theme/cart.js @@ -273,6 +273,7 @@ export default class Cart extends PageManager { text: string, icon: 'warning', showCancelButton: true, + cancelButtonText: this.context.cancelButtonText }).then((result) => { if (result.value) { // remove item from cart diff --git a/templates/pages/cart.html b/templates/pages/cart.html index 9831d27689..77a4d01f13 100644 --- a/templates/pages/cart.html +++ b/templates/pages/cart.html @@ -1,6 +1,7 @@ --- cart: true --- +{{inject 'cancelButtonText' (lang 'common.cancel')}} {{#partial "page"}}