Would you like to set the language for Cloudflare Turnstile? While Turnstile attempts to auto-detect the visitor’s language, you might want to force a specific language for your forms. With a JavaScript code snippet, you can easily set the language using a custom action hook.
Setting the Language
In our code example below, we’re going to set the Turnstile language to Arabic (Egypt).
First, you’ll need to set up Cloudflare Turnstile on your form. If you need any assistance with that, please check out our detailed guide on how to set up Cloudflare Turnstile.
Next, you’ll need to copy this code to your site. If you need help in adding snippets to your site, refer to our guide on adding custom codes to your website.
Once the code is added, you can now see the verification prompt has been translated to Arabic.
And that’s all you need to force the Cloudflare Turnstile language. Would you like to also change the language of Google reCAPTCHA? Take a look at our guide on setting up language for Google reCAPTCHA.