-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Description
I have noticed the progress steps in the checkout dont seem to be translatable. Unless I am missing something.
The template file Magento_Checkout/view/frontend/web/template/progress-bar.html has the line
data-bind"text item.title, click: $parent.navigateTo"
This is not translatable, however, even if it was, it will not translate, as it will look for translation for the string "item.title" not the array value
Now item.title is defined in
Magento_Checkout/view/frontend/web/js/view/shipping.js
Magento_Checkout/view/frontend/web/js/view/payments.js
Both places this is just added to stepNavigator.registerStep as a string without passing through translations.
The best solution would be to pass it through translations in shipping.js / payments.js
Example shipping.js
var shippingText = $t('Shipping')
if (!quote.isVirtual()) {
stepNavigator.registerStep(
'shipping',
'',
shippingText,
this.visible, _.bind(this.navigate, this),
10
);
}
Please can this be fixed so these fields can be translated.