title: Twig translate a string which contains parameter
body: <p>In my Twig project I use translation from .yaml files. The text which I need to translate is found in a .html.twig file and says, for example, </p>
  
  <p>"My text for translation contains a {{parameter}} to translate." </p>
  
  <p>I know that I can replace this whole string with a key word, for example - to_translate %parameter% to_translate2, and I can use the translation from my .yaml file like this </p>
  
  <p>to_translate: "My text for translation contains a"
  to_translate2: "to translate"</p>
  
  <p>And the parameter will be passed. However, how can I do this without breaking the sentence in so many parts?</p>