Translate CAPTCHA text in JS.
This commit is contained in:
parent
2904a07088
commit
64057bf9d5
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user