1 | <?php declare(strict_types=1); |
||
11 | class DefaultValidatorTranslator implements ValidatorTranslatorInterface |
||
12 | { |
||
13 | /** |
||
14 | * @var array |
||
15 | */ |
||
16 | protected $texts = [ |
||
17 | 'errorTheNoneSpecifiedField' => 'Field', |
||
18 | 'errorFieldXIsRequired' => '%field% must be filled in.', |
||
19 | 'errorFieldMustBeMinNumber' => '%field% must be minimum %number%.', |
||
20 | 'errorFieldMustBeMaxNumber' => '%field% must be maximum %number%.', |
||
21 | 'errorFieldMustBeMinXLength' => '%field% must include minimum %numberOf% characters.', |
||
22 | 'errorFieldMustBeMaxXLength' => '%field% must include maximum %numberOf% characters.', |
||
23 | 'errorFieldMustBeXLength' => '%field% must consist of %numberOf% characters.', |
||
24 | 'errorFieldInvalidFormat' => '%field% has invalid format.', |
||
25 | 'errorFieldValidCharactersAreX' => 'Valid characters are %characters%.', |
||
26 | 'errorInvalidEmail' => 'Email address is invalid.', |
||
27 | 'errorInvalidDate' => 'Date is invalid.', |
||
28 | 'errorInvalidDateTime' => 'Date/time is invalid.', |
||
29 | ]; |
||
30 | |||
31 | /** |
||
32 | * {@inheritdoc} |
||
33 | */ |
||
34 | 40 | public function trans(string $id, array $parameters = []): string |
|
42 | } |
||
43 |