I have an ApplicationContract
with such option: config.messages.backend = :i18n
It correctly finds corresponding message.
However:
Contract::UserAdmin.new.call({}).errors(full: true).to_h
=> {:name=>["name не должно быть пустым"] }
I can’t find a way to localize :name
attribute in full message. I expect something like this:
#/config/ru.yml
ru:
dry_validation:
errors:...
attributes:
name: 'Имя'
Contract::UserAdmin.new.call({}).errors(full: true).to_h
=> {:name=>["Имя не должно быть пустым"] }