Skip to content

Conversation

romankoho
Copy link

This PR relates to the idea described in this ticket #5259.
It allows defining the error message as object with {key: string, values?: object}

This allows easier handling of localization as the translations can be deferred to the moment when the JSX is being rendered. Thus, it is not necessary to define schemas in the React lifecylce (e.g. with useMemo and t or the current language as dependency).

I assume this is a very naive implementation but maybe it can give food for thoughts and discussion. I'd love to see such a feature implemented

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant