I want native constraint validation messages to be translatable #177
aarongustafson
started this conversation in
Wants
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Browsers support many locales when displaying input constraint validation error messages, but they display them based on
navigator.language
. A common request from clients is to have them in the language of the website in order to have a unified experience (especially if there are custom error messages displayed in the language of the website). This, currently, means re-creating them based oninput.validity
. That solution is not all that great as browsers give information to the user that is not available ininput.validity
(such as what is missing in the email format). I'd love to be able to specify the language that validation messages should use in some way.https://webwewant.fyi/wants/107/
Beta Was this translation helpful? Give feedback.
All reactions