Skip to content

Commit e6ace65

Browse files
committed
fixup
1 parent 177336c commit e6ace65

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

validation/translations.rst

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -148,14 +148,14 @@ The default translation domain can be changed globally using the
148148

149149
.. code-block:: yaml
150150
151-
# config/packages/translation.yaml
151+
# config/packages/validator.yaml
152152
framework:
153-
translator:
153+
validation:
154154
translation_domain: validation_errors
155155
156156
.. code-block:: xml
157157
158-
<!-- config/packages/translation.xml -->
158+
<!-- config/packages/validator.xml -->
159159
<?xml version="1.0" encoding="UTF-8" ?>
160160
<container xmlns="http://symfony.com/schema/dic/services"
161161
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
@@ -166,22 +166,21 @@ The default translation domain can be changed globally using the
166166
https://symfony.com/schema/dic/symfony/symfony-1.0.xsd">
167167
168168
<framework:config>
169-
<framework:translator
169+
<framework:validation
170170
translation-domain="validation_errors"
171171
/>
172172
</framework:config>
173173
</container>
174174
175175
.. code-block:: php
176176
177-
// config/packages/translation.php
177+
// config/packages/validator.php
178178
use Symfony\Config\FrameworkConfig;
179179
180180
return static function (FrameworkConfig $framework) {
181181
// ...
182182
$framework
183-
->defaultLocale('en')
184-
->translator()
183+
->validation()
185184
->translationDomain('validation_errors')
186185
;
187186
};

0 commit comments

Comments
 (0)