flask-wtf
flask-wtf copied to clipboard
Set language of recaptcha
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