Skip to content

Commit 1015443

Browse files
committed
Make the strings of checkout steps translatable
The strings "Shipping" and "Review and Payments" were not translatable on the checkout page.
1 parent 9ee6377 commit 1015443

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

app/code/Magento/Checkout/view/frontend/web/js/view/payment.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ define(
1515
'Magento_Checkout/js/model/payment-service',
1616
'Magento_Checkout/js/model/payment/method-converter',
1717
'Magento_Checkout/js/action/get-payment-information',
18-
'Magento_Checkout/js/model/checkout-data-resolver'
18+
'Magento_Checkout/js/model/checkout-data-resolver',
19+
'mage/translate'
1920
],
2021
function (
2122
$,
@@ -27,7 +28,8 @@ define(
2728
paymentService,
2829
methodConverter,
2930
getPaymentInformation,
30-
checkoutDataResolver
31+
checkoutDataResolver,
32+
$t
3133
) {
3234
'use strict';
3335

@@ -51,7 +53,7 @@ define(
5153
stepNavigator.registerStep(
5254
'payment',
5355
null,
54-
'Review & Payments',
56+
$t('Review & Payments'),
5557
this.isVisible,
5658
_.bind(this.navigate, this),
5759
20

app/code/Magento/Checkout/view/frontend/web/js/view/shipping.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ define(
7575
stepNavigator.registerStep(
7676
'shipping',
7777
'',
78-
'Shipping',
78+
$t('Shipping'),
7979
this.visible, _.bind(this.navigate, this),
8080
10
8181
);

0 commit comments

Comments
 (0)