title: How to insert translated string in the display twig operator
body: <p>I have created a twig function which has a parameter 'message'. The value of this parameter should be a translation.</p>
  
  <p>I thought I could do like that but no. Problem of syntax maybe :</p>
  
  <pre><code>{{ attention ('{
          "message":"' ~ {% trans %}generalites.projectkit.attention{% endtrans %} ~ '"
     }')
  }}
  </code></pre>
  
  <p>{% trans %} is not displayed correctly in IDE and I have this error message :</p>
  
  <pre><code>A hash key must be a quoted string, a number, a name, or an expression enclosed in parentheses 
  (unexpected token "operator" of value "%")
  </code></pre>
  
  <p>Can you help ?</p>
  
  <p>Thank you</p>