flask-wtf icon indicating copy to clipboard operation
flask-wtf copied to clipboard

Set language of recaptcha

Open ar-anvd opened this issue 6 years ago • 0 comments

I can't find an answer in SO, so let me post here.

There is any way to set a language without using RECAPTCHA_PARAMETERS = {'hl': 'zh'} ?

This will ignore the @babel.localeselector, so in a multilingual site when I change the localeselector the recaptcha remains in the same language (api.js).

https://github.com/lepture/flask-wtf/blob/534e1734b86c2f0907af131c11b981e6146ca57c/flask_wtf/recaptcha/widgets.py#L26

ar-anvd avatar Aug 27 '18 11:08 ar-anvd