Skip to content

[DX][3.0] Fix inconsistent use of translation parameters #11948

Closed
@wouterj

Description

@wouterj

The translator document uses the %...% convention for translation parameters:

I have %number% apples.

However, the Validation component uses the {{ ... }} (twig-like) syntax for translation parameters:

This value should at least be {{ minValue }} characters long.

This has confused some people already, especially when creating their own constraints:

  • Should they follow the translation or validation conventions?
  • The documentation follows the translation conventions, that seems inconsistent

I would suggest to have one standard for translation parameters and use that everywhere in the core framework.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DXDX = Developer eXperience (anything that improves the experience of using Symfony)TranslationValidator

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions