-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Hey,
First, thanks for your really useful library!
Is it possible for to connect your phone function with the setLocale function from yup ?
With the set Locale function, i can change all the different languages on one place. But your phone function isn't working.
The native yup functions predefine the error message from the locale definition like:
length( length: number | Reference<number>, message: Message<{ length: number }> = locale.length, ) { .... }
source: https://github.com/jquense/yup/blob/master/src/string.ts
In your case, it is a hard coded string in English (or you change it explicitly when you call the phone function).
regards
Reocin
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels