Google reCAPTCHA has its own technology to determine the best language for the users, probably detecting browser language; so I suggest maintaining the default configuration.
However, If you want to force the widget to render in a specific language, open the following file:
– @app/views/app/embed.php
And replace this line:
$this->registerJsFile('https://www.google.com/recaptcha/api.js', ['position' => View::POS_HEAD]);
By:
$this->registerJsFile('https://www.google.com/recaptcha/api.js?hl= fr', ['position' => View::POS_HEAD]);
In this example, we are using the ‘fr’ (french), but you can replace it by the desired language code.
And that’s all!
Ref. | https://developers.google.com/recaptcha/docs/language