These are chat archives for dry-rb/chat

26th
Jan 2017
Pierre-Alexandre Kofron
@kofronpi
Jan 26 2017 14:27
hello
I'm confused about something : where do dry-validations expect to find I18n translations of keys and nested keys of errors? (ie models, nested models / collections etc)
example:
{:"anchors.address"=>["doit être rempli"]} # message
Anchors Address doit être rempli # full message
I want to translate "Anchors Address". Anchor is a model, address an attribute
Tim Riley
@timriley
Jan 26 2017 21:08
I think’d be up to you to translate, @kofronpi. dry-validation doesn’t translate key paths.
They’re meant to correspond to the data