Background
Currently, egg-validate don't support i18n:
Proposal
i18n
egg-validate will use egg-i18n as optionalDependencies
- change Parameter's
translate to ctx.gettext which provide by egg-i8n
rule file
- auto load
app/validate/**/*.js, and register to app.validator.addRule(type, fn)
Background
Currently, egg-validate don't support
i18n:Proposal
i18n
egg-validatewill use egg-i18n asoptionalDependenciestranslatetoctx.gettextwhich provide byegg-i8nrule file
app/validate/**/*.js, and register toapp.validator.addRule(type, fn)