1
0

Translate CAPTCHA text in JS.

This commit is contained in:
Alexander Andreev 2024-09-15 15:03:39 +04:00
parent 2904a07088
commit 64057bf9d5
Signed by: Arav
GPG Key ID: 25969B23DCB5CA34

View File

@ -13,8 +13,9 @@ async function getNewCaptcha() {
g_captcha_timeout_remain = g_captcha_timeout_seconds;
}
e_captcha.children[3].innerHTML =
`<button id="refresh">Refresh</button>ed in <b><span id="remain">600</span></b> seconds.`;
e_captcha.children[3].innerHTML = document.cookie.includes("lang=ru") ?
`<button id="refresh">Обновит</button>ся через <b><span id="remain">600</span></b> секунд(у).`
: `<button id="refresh">Refresh</button>ed in <b><span id="remain">600</span></b> seconds.`;
const captcha_refresh = document.getElementById("refresh");
const captcha_remain = document.getElementById("remain");