# Can't localize dry-validation full message (including attribute)

**URL:** <https://discourse.dry-rb.org/t/cant-localize-dry-validation-full-message-including-attribute/1055>\
**Category:** dry-validation\
**Created:** [May 14, 2020, 10:04pm UTC](https://discourse.dry-rb.org/t/cant-localize-dry-validation-full-message-including-attribute/1055 "2020-05-14T22:04:36Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![slavaZim](https://avatars.discourse-cdn.com/v4/letter/s/b77776/32.png) [@slavaZim](https://discourse.dry-rb.org/u/slavaZim)\
**Post date:** [May 14, 2020, 10:04pm UTC](https://discourse.dry-rb.org/t/cant-localize-dry-validation-full-message-including-attribute/1055/1 "2020-05-14T22:04:36Z")

</div>

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=>["Имя не должно быть пустым"] }
```

---

_[View the full topic](https://discourse.dry-rb.org/t/cant-localize-dry-validation-full-message-including-attribute/1055)._
