You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I call v.parse() manually, the localized messages do work, but when I do the validation with vee-validate, by submitting a form, the destructured errors property from useForm() does not include the localized messages.
Reproduction steps
Install the required npm packages, and make sure to lock the Valibot package to 1.0.0-beta.1, 1.0.0-beta.2 or 1.0.0-beta.3, as at least 1.0.0-beta.1 is required for @valibot/i18n, but anything above 1.0.0-beta.3 breaks toTypedSchema
Import the Valibot i18n package and set the language as described above
What happened?
In my
main.ts
I did the following, according to the Valibot docs:If I call
v.parse()
manually, the localized messages do work, but when I do the validation with vee-validate, by submitting a form, the destructurederrors
property fromuseForm()
does not include the localized messages.Reproduction steps
1.0.0-beta.1
,1.0.0-beta.2
or1.0.0-beta.3
, as at least1.0.0-beta.1
is required for@valibot/i18n
, but anything above1.0.0-beta.3
breakstoTypedSchema
const { handleSubmit } = useForm({ validationSchema: toTypedSchema(Schema) })
const onSubmit = handleSubmit(() => {})
<form @submit.prevent="onSubmit">...</form>
with elements rendering theerrors
Version
Vue.js 3.x and vee-validate 4.x
What browsers are you seeing the problem on?
Relevant log output
No response
Demo link
None
Code of Conduct
The text was updated successfully, but these errors were encountered: