Hey,

I would be interested to know if there is a builtin mechanism to add specific 
validators for a certain locale.

For example:

de_DE -> StringValidator.maximumLength(100)
en_GB -> StringValidator.maximumLength(200);
en_US -> StringValidator.maximumLength(200);
& AnotherValidatorOnlyForUS();

My current solution is a switch-case over the locale to add the correct 
validators.
With more locales and more validators this solution feels kind of sloppy.

What does your solution looks like?


Cheers,
Chris

Reply via email to