pdupavillon / express-recaptcha

Implementation of google recaptcha v2 & V3 solutions for express.js
MIT License
128 stars 22 forks source link

Multiple language support #22

Closed sarkiroka closed 5 years ago

sarkiroka commented 5 years ago

I use this great lib with multiple language, but this need always create new instance by constructor. I think good idea on render accept some parameters - as options. This mean only one instance need, but by requests other and other language served.

pdupavillon commented 5 years ago

Hey @sarkiroka, The latest release 4.1.0 introduce renderWith method that allows you to override the options. You can check the doc : https://github.com/pdupavillon/express-recaptcha#render---recaptchamiddlewarerenderwith

Best, Paul