February 14, 2019 Javier Eguiluz

The forms created with the Symfony Form component translate their labels and help messages automatically. However, the translations cannot contain any custom parameters because in the templates, the trans() Twig filter is called without passing any parameters.

In Symfony 4.3 we improved the translation of Symfony Forms allowing to define custom translation parameters using three new config options: label_translation_parameters , help_translation_parameters , and attr_translation_parameters (this one is useful to translate placeholder and title ):