title: How to translate messages in form Symfony 5.2
body: <p>How I can set translate in FormType in Symfony 5.2 for messages ? I have validators.fr.yaml file, but i don't know how to set it</p>
  <pre><code>-&gt;add('plainPassword', PasswordType::class, [
                  'mapped' =&gt; false,
                  'constraints' =&gt; [
                      new NotBlank([
                          'message' =&gt; 'Please enter a password',
                      ]),
                      new Length([
                          'min' =&gt; self::MIN_LENGTH,
                          'minMessage' =&gt; 'Your password should be at least {{ limit }} characters',
                          'max' =&gt; self::MAX_LENGTH,
                      ]),
                  ],
              ])
  </code></pre>
  <p>and this</p>
  <pre><code>onsubmit=&quot;return confirm({{&quot;are you sure?&quot;}}) 
  </code></pre>
  <p>on form.index.html</p>