koajs / joi-router

Configurable, input and output validated routing for koa
MIT License
450 stars 96 forks source link

Will joi-router add language support? #32

Closed miserylee closed 3 years ago

miserylee commented 8 years ago

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 the validate method? 😋

miserylee commented 8 years ago

I'm Chinese, so in my app, I want to override the default language options to Chinese. That will be much helpful!

aheckmann commented 5 years ago

good idea. please open a PR with a prototype.

3imed-jaberi commented 3 years ago

@aheckmann, please close this issue it fixed with #119.

aheckmann commented 3 years ago

thanks!