Closed miserylee closed 3 years ago
I'm Chinese, so in my app, I want to override the default language
options to Chinese. That will be much helpful!
good idea. please open a PR with a prototype.
@aheckmann, please close this issue it fixed with #119.
thanks!
As in joi document, the validate method receives 4 params.
validate(value, schema, [options], [callback])
Some options in validation is useful like
language - overrides individual error messages. Defaults to no override ({}). Messages apply the following rules :
So will joi-router add
options
support in the future when use thevalidate
method? 😋