Skip to content

Change recaptcha language #3033

Answered by sinjs
csgo-s asked this question in Support
Jan 25, 2021 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

Usually, reCAPTCHA automatically selects the language of the user's browser for the captcha. If you still want to change it, follow these steps:

First of all, you need to install the panel modules for building. (Make sure you are in the /var/www/pterodactyl folder and have yarn installed!)

yarn install

Then you need to change the following file: /var/www/pterodactyl/resources/scripts/components/auth/LoginContainer.tsx.
In line 104 it should look like this:

sitekey={siteKey || '_invalid_key'}
onVerify={response => { 

between the sitekey and onVerify add this line:

hl={'[languagecode]'}

You will need to replace the [languagecode] with something like en (List here)
After you've edited the fi…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@sinjs
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by schrej
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants