Skip to content

Commit 9ccfccb

Browse files
author
Oleksii Korshenko
authored
MAGETWO-87339: #7849: M2.x.x Translation Missing in Checkout for Tax #1147
2 parents fe09530 + 4ea8640 commit 9ccfccb

File tree

2 files changed

+6
-3
lines changed
  • app/code/Magento/Tax

2 files changed

+6
-3
lines changed

app/code/Magento/Tax/i18n/en_US.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,3 +178,4 @@ Rate,Rate
178178
"Your credit card will be charged for","Your credit card will be charged for"
179179
"An error occurred while loading tax rates.","An error occurred while loading tax rates."
180180
"You will be charged for","You will be charged for"
181+
"Not yet calculated", "Not yet calculated"

app/code/Magento/Tax/view/frontend/web/js/view/checkout/summary/tax.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ define([
1111
'ko',
1212
'Magento_Checkout/js/view/summary/abstract-total',
1313
'Magento_Checkout/js/model/quote',
14-
'Magento_Checkout/js/model/totals'
15-
], function (ko, Component, quote, totals) {
14+
'Magento_Checkout/js/model/totals',
15+
'jquery',
16+
'mage/translate'
17+
], function (ko, Component, quote, totals, $) {
1618
'use strict';
1719

1820
var isTaxDisplayedInGrandTotal = window.checkoutConfig.includeTaxInGrandTotal,
@@ -22,7 +24,7 @@ define([
2224
return Component.extend({
2325
defaults: {
2426
isTaxDisplayedInGrandTotal: isTaxDisplayedInGrandTotal,
25-
notCalculatedMessage: 'Not yet calculated',
27+
notCalculatedMessage: $.mage.__('Not yet calculated'),
2628
template: 'Magento_Tax/checkout/summary/tax'
2729
},
2830
totals: quote.getTotals(),

0 commit comments

Comments
 (0)