Is it possible to use translations with nl2br
?
I tried {{ "This offer may \n interest you"|nl2br|t }}
, but it doesn't translate the string because it contains a '\n'
character.
I already tried with {% trans %}{% endtrans %}
instead of |t
, but the result is same.
t
doesn't know/care how the string came to be. You should find the translation source under This offer may <br /> interest you