# Dry::Validation::Result#messages ignore locale option

**URL:** <https://discourse.dry-rb.org/t/dry-result-messages-ignore-locale-option/910>\
**Category:** dry-validation\
**Created:** [September 28, 2019, 9:41am UTC](https://discourse.dry-rb.org/t/dry-result-messages-ignore-locale-option/910 "2019-09-28T09:41:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![emaglio](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.dry-rb.org/emaglio/32/436_2.png) [@emaglio](https://discourse.dry-rb.org/u/emaglio)\
**Post date:** [September 28, 2019, 9:41am UTC](https://discourse.dry-rb.org/t/dry-result-messages-ignore-locale-option/910/1 "2019-09-28T09:41:10Z")

</div>

Hi there,  
I have encountered an issue that seems not present for dry gems \< 1.0

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/dry_rb/original/1X/e0d9f9f9a70e45874067fabd25ecf9f5fddfa32f.png)

In the image above I have `@results` which is an array of `Dry::Validation::Contract` class where I have already called `call` with input.

I’m trying to verify that when I do something like this:

```auto
class MySchema < Dry::Validation::Contract
  config.messages.load_paths << 'my_file.yml'
  params do
    required(:title).filled
  end
end

result = MySchema.call({})
result.errors(locale: :de) -> returns the de version
result.messages(locale: :de) -> returns the de version but it doesn't and returns the en version

```

Here a portion of my error file:

```auto
en:
  dry_validation:
    errors:
      filled?: "must be filled"

de:
  dry_validation:
    errors:
      filled?: "muss abgefüllt sein"

```

Am I missing something or there is an issue with the `message` method?

---

<div class="post-metadata">

**Author:** ![solnic](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.dry-rb.org/solnic/32/779_2.png) [@solnic](https://discourse.dry-rb.org/u/solnic)\
**Post date:** [September 28, 2019, 4:28pm UTC](https://discourse.dry-rb.org/t/dry-result-messages-ignore-locale-option/910/2 "2019-09-28T16:28:25Z")

</div>

Please report a bug on github.

---

<div class="post-metadata">

**Author:** ![emaglio](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.dry-rb.org/emaglio/32/436_2.png) [@emaglio](https://discourse.dry-rb.org/u/emaglio)\
**Post date:** [September 28, 2019, 10:01pm UTC](https://discourse.dry-rb.org/t/dry-result-messages-ignore-locale-option/910/3 "2019-09-28T22:01:44Z")

</div>

Ok thanks, here it is: [https://github.com/dry-rb/dry-validation/issues/589](https://github.com/dry-rb/dry-validation/issues/589)
