0

This is my resulting html

<div data-ui-id="checkout-cart-validationmessages-message-error">
    The requested qty is not available
</div>

Probably generated by :

<div data-role="checkout-messages" class="messages" data-bind="visible: isVisible(), click: removeAll">
    <!-- ko foreach: messageContainer.getErrorMessages() -->
    <div role="alert" class="message message-error error">
        <div data-ui-id="checkout-cart-validationmessages-message-error" data-bind="text: $data"></div>
    </div>
</div>

The key is already present in my i18n translation file.

What is missing there for the translation to be applied ?

1 Answer 1

0

You should replace

data-bind="text: $data"

with:

data-bind="i18n: $data"
1
  • Tried it it's not working sadly :/
    – Claims
    Nov 15, 2021 at 9:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.