TransWikia.com

Magento 2: How to translate knockout html file for word that contains hyperlink?

Magento Asked on November 17, 2021

I have a text like this:

To contact us please email us at [email protected], will be waiting!

when the user clicked on the email it will redirect the user to mail link, using phtml i can easily achieve it like this:

<p>
 <?= __("To contact us please email us at %1, will be waiting!",'<a href="[email protected]">[email protected]</a>') ?>
</p>

but i have trouble on putting this in knockout HTML file, because i don’t know if it can support like that, it needs to be translated with this format:

XXXXXXXXX ZZZZZZ VVVVV [email protected]

One Answer

you can follow the below link to translate the word in html file

translation in html file

Answered by Jigs Parmar on November 17, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP