vee-validate
vee-validate copied to clipboard
Pass Yup validation errors through `generateMessage` callback
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!
That is reasonable, I will try to figure something out.