The <code>&lt;li&gt;</code> tags should be outside the trans block. Or, instead of a trans block, you can do <code>{{ _('yadda <a href="%s">link</a> yadda')|format('https://example.com') }}</code>, if you prefer.