1
See this example below of a missing translation:
{
"errors": [
"Email translation missing: pt-BR.activerecord.errors.models.artemis/user.attributes.email.taken"
]
}
To solve this translation I must follow exactly 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 I can put the validation before something like message: I18n.t('errors.messages.cpf')
, but having to do this in every validation would leave the code well polluted.