We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b94a256 commit 1e34e91Copy full SHA for 1e34e91
UPGRADE-2.2.md
@@ -64,6 +64,26 @@
64
Symfony\Component\Form\Exception namespace or to create custom exception
65
classes for your purpose.
66
67
+ * Translating validation errors is now optional. You can still do so
68
+ manually if you like, or you can simplify your templates to simply output
69
+ the already translated message.
70
+
71
+ Before:
72
73
+ ```
74
+ {{
75
+ error.messagePluralization is null
76
+ ? error.messageTemplate|trans(error.messageParameters, 'validators')
77
+ : error.messageTemplate|transchoice(error.messagePluralization, error.messageParameters, 'validators')
78
+ }}
79
80
81
+ After:
82
83
84
+ {{ error.message }}
85
86
87
#### Deprecations
88
89
* The methods `getParent()`, `setParent()` and `hasParent()` in
0 commit comments