Skip to content

Commit 0566957

Browse files
committed
#18939: [Forwardport] fixed js translation.
1 parent 072ef37 commit 0566957

File tree

2 files changed

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

2 files changed

+5
-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: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ 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+
'mage/translate'
16+
], function (ko, Component, quote, totals, $t) {
1617
'use strict';
1718

1819
var isTaxDisplayedInGrandTotal = window.checkoutConfig.includeTaxInGrandTotal,
@@ -22,7 +23,7 @@ define([
2223
return Component.extend({
2324
defaults: {
2425
isTaxDisplayedInGrandTotal: isTaxDisplayedInGrandTotal,
25-
notCalculatedMessage: 'Not yet calculated',
26+
notCalculatedMessage: $t('Not yet calculated'),
2627
template: 'Magento_Tax/checkout/summary/tax'
2728
},
2829
totals: quote.getTotals(),

0 commit comments

Comments
 (0)