Skip to content

How to translate the label? #1

@ymc-sise

Description

@ymc-sise

I don't know how to translate the label. So far i have:

        ->add('lastname', 'text', array(
            'label' => 'form.last_name',
            'attr' => [
                'placeholder' => 'form.last_name'
            ]
        ))

The placeholder is translated correct in my input field, but in the error message the label is not translated. The error message itself is translated correct. What is the issue here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions