vee-validate icon indicating copy to clipboard operation
vee-validate copied to clipboard

Pass Yup validation errors through `generateMessage` callback

Open cristiancalara opened this issue 2 years ago • 1 comments

Hey, thanks for the great package!

I'm using Yup for validation. And I want to add localization. While I can set the locale in Yup as the full strings, I would like to take the approach suggested by Yup in its documentation and only return the localization keys https://github.com/jquense/yup#localization-and-i18n

I tried using the generateMessage function, but looking in the code, this is not called for Yup (as it's already stated in the docs). I thought we could pass the messages from Yup through this function as well.

Thanks!

cristiancalara avatar Dec 11 '22 09:12 cristiancalara

That is reasonable, I will try to figure something out.

logaretm avatar Dec 12 '22 08:12 logaretm