<?= $block->escapeHtml(__(
    'You added product %1 to the <a href="%2">comparison list</a>.',

I have Swedish store view as well and this text is not translated in to Swedish How can I translate it into swedish

1 Answer 1


you can do this way..


"You added product %1 to the <a href=""%2"">comparison list</a>.","You added product %1 to the <a href=""%2"">comparison list</a>."

Right side you can add your translation word and after clear cache

  • No It did not worked for me Apr 30, 2020 at 12:35
  • @HafsaZulfiqar first you check where is your language file then add it then cache clear or run deploy command Apr 30, 2020 at 14:27
  • I have child the,e and added in i18n/sv_SE.csv but when I run deploy command then the changes are not reverting and not even deployed in pub folder May 1, 2020 at 7:40

Your Answer

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

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