Skip to content

Commit c5e74cb

Browse files
ENGCOM-3443: #18939: [Forwardport] fixed js translation. #19174
- Merge Pull Request #19174 from p-bystritsky/magento2:ISSUE-18939 - Merged commits: 1. 0566957
2 parents 57d7010 + 0566957 commit c5e74cb

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)