0

In Magento_Checkout/web/template/minicart/content.html there is a "mailto:[email protected]" used. Now I can translate the last piece by -- ko text: $t('[email protected]') --> <-- /ko --> into something like "[email protected]". But how can I translate "mailto:[email protected]" into "mailto:@website.co.uk"? So that I can use it for a multistore website. I believe it is in JS knockout: see the code below:

    <!-- ko ifnot: getCartParam('summary_count') -->


    <div class="c-minicart__footer__right col-8">
        <i class="icon-envelope"></i>
        <a href="mailto:[email protected]">[email protected]</a>
    </div>
    <!-- /ko -->
2

1 Answer 1

1

You can use so tag:

<!-- ko ifnot: getCartParam('summary_count') -->
<div class="c-minicart__footer__right col-8">
        <i class="icon-envelope"></i>
        <a href="#" attr="href: $t('mailto:[email protected]')">>
                <translate args="'[email protected]'"/>
        </a>
</div>
<!-- /ko -->
1
  • thanx! This works perfect! It's easy if you know it :) Commented Apr 2, 2021 at 16:54

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.