CodeDistillery / angular-no-captcha

Angular.JS wrapper for Google's No CAPTCHA reCAPTCHA
http://codedistillery.github.io/angular-no-captcha/
MIT License
42 stars 21 forks source link

Added dynamic language switching #32

Closed running-coder closed 6 years ago

running-coder commented 8 years ago

Hey,

I needed the ability to change the language of the captcha dynamically. I've added the ability to register language="en|fr|es|etc." attribute on the "no-captcha" tag

<no-captcha expired-callback="expiredCallback"
            g-recaptcha-response="gRecaptchaResponse"
            control="captchaControl"
            language="{{language}}"></no-captcha>

I am by no mean an angular expert so feel free to modify the code to fit yours.

Thanks.

vepasto commented 8 years ago

Thanks @running-coder!

It seems to work well, but tests fail. Can you add some tests?

latenssi commented 6 years ago

Closing as this is quite old and has no updates