key: > This is a multi line translation. Will still result into the following code in html: var javascriptVariable = "This is a multi line translation. "; So, the minus sign in Twig does not solve this. The solution is to add this minus sign after the greater than sign in yml: key: >- This is a multi line translation. More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.