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"}}