Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Validator] AtLeastOneOf default message property is not translated. #41317

Closed
@wcs-gilliaard

Description

@wcs-gilliaard

Symfony version(s) affected: 5.2.8

Description
When default locale of the framework is set on for example dutch the following example will be returned:
This value should satisfy at least one of the following constraints: [1] Deze waarde moet leeg zijn. [2] Deze waarde is te lang. Hij mag maximaal 100 tekens bevatten.
As you can see the languages are mixed.

How to reproduce
Set the locale of framework to the language dutch. I think this also problem with other languages.

Code example

new AtLeastOneOf(
  [
    'constraints' => [
            new Blank(),
            new Length(
                [
                    'max' => 100,
                ]
            ),
        ],
    ]
);

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions