I am having a translation array in Sonata Admin that looks like this:
messages.en.yml
admin:
form:
label:
identifier:
identificationTitle: Some text here
otherKey: blabla
when I am trying to access it like this
{{ 'admin.form.label.identifier.identificationTitle'|trans }}
or like this
{{ 'admin.form.label.identifier.identificationTitle'|trans({}, 'MyBundle') }}
they don't work and I get as a response the key string.
But if I use it like this:
messages.en.yml
admin_form_label_identifier_identificationTitle: some text here
the view
{{ 'admin_form_label_identifier_identificationTitle'|trans }}
it works.
Obviously I don't want to have this format but use the nice array formatted option. Is this even possible in Sonata Admin?