Open tigerros opened 7 months ago
Which language is the user speaking?
On Sun, 4 Feb 2024, 16:03 tigerros, @.***> wrote:
I'm using this for form validation but I'm disappointed how little user experience is cared about. Even a simple length constraint has no message to help users understand what went wrong. Could this be added? I don't like adding custom messages everywhere.
— Reply to this email directly, view it on GitHub https://github.com/Keats/validator/issues/287, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFGDIZZDZ4VVEPRNW4R2ELYR6PK5AVCNFSM6AAAAABCY5TPZWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGEYTOMJUGE3DANY . You are receiving this because you are subscribed to this thread.Message ID: @.***>
I suppose you got me there. i18n is hard, but I don't think that "only" English messages would be a waste of time, especially since it requires no API changes. Having English messages is undoubtedly better than having no messages at all.
i'd rather have a separate crate with default error messages for various languages than baking one
I'm using this for form validation but I'm disappointed how little user experience is cared about. Even a simple length constraint has no message to help users understand what went wrong. Could this be added? I don't like adding custom messages everywhere.