Skip to content

Translate Progress Steps #3076

@teuma86

Description

@teuma86

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions