For different languages I will have different labels, so I expected it to be possible to pass a tuple containing the name of the fields and their new label when validating with joi, thus maintaining the consistency of the schema and ensuring new messages as needed.
What problem are you trying to solve?
Capacity to change dynamically field labels based on validate and integrate with next-intl
Do you have a new or modified API suggestion to solve the problem?
Runtime
node, browser
Runtime version
17+
Module version
17+
Used with
next + react-hook-form + next-intl + joi-translation-pt-br
Any other relevant information
I'm using Joi to validate my frontend forms and this application needs to use internationalization. An example of component using this is that:
For different languages I will have different labels, so I expected it to be possible to pass a tuple containing the name of the fields and their new label when validating with joi, thus maintaining the consistency of the schema and ensuring new messages as needed.
What problem are you trying to solve?
Capacity to change dynamically field labels based on validate and integrate with next-intl
Do you have a new or modified API suggestion to solve the problem?
Unfortunately not...