See this example below for a missing translation:
{
"errors": [
"Email translation missing: pt-BR.activerecord.errors.models.artemis/user.attributes.email.taken"
]
}
To resolve this translation I must exactly follow the structure generated above:
activerecord:
errors:
models:
artemis/user:
attributes:
cpf:
taken: 'Aqui vem a tradução'
My question is whether there is a more automated and simple way to simplify this translation? See below:
errors:
messages:
cpf: 'Aqui vem a tradução'
I know that I can put the front of the validation something like message: I18n.t('errors.messages.cpf')
, but having to do this insertion in any validation would leave the code well polluted.