Skip to content

Are i18n messages designed for API responses? Is there no one for human customers who submit a form via browsers? #1037

Answered by fabian-hiller
tats-u asked this question in Q&A
Discussion options

You must be logged in to vote

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 with setGlobalMessage, setSchemaMessage and setSpecificMessage.

https://valibot.dev/guides/internationalization/

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@tats-u
Comment options

@fabian-hiller
Comment options

@tats-u
Comment options

@fabian-hiller
Comment options

@tats-u
Comment options

Answer selected by tats-u
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants