Overview
This article explains how to change the language of the Auth Challenge CAPTCHA.
Applies To
- Bot Detection
Cause
The default is to use English, but this can be overridden.
Solution
By passing a “lang” attribute to the renderCaptcha call, it is possible to change the language used by the Auth Challenge Captcha.
For example, passing the language letter code as “ui_locales” in the /authorize request’s querystring parameters will be accessible via the config object:
var captcha = webAuth.renderCaptcha(
document.querySelector('.captcha-container'),
{lang: config.extraParams.ui_locales})