Are i18n messages designed for API responses? Is there no one for human customers who submit a form via browsers? #1037
-
i18n messages looks too mechanical to show as error messages of forms. Is there a plan to add those designed for such a purpose? e.g. "Please make sure your input has at least 8 characters." |
Beta Was this translation helpful? Give feedback.
Answered by
fabian-hiller
Jan 28, 2025
Replies: 1 comment 5 replies
-
You can fully customize the error message, even for i18n. Individual messages can be passed as an argument to most schemas |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
tats-u
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can fully customize the error message, even for i18n. Individual messages can be passed as an argument to most schemas
and actions, local error messages can be passed when calling any validation method like
parse
and global messages can be set withsetGlobalMessage
,setSchemaMessage
andsetSpecificMessage
.https://valibot.dev/guides/internationalization/