Element.lang = lang;
            const t = translations[lang];

            document.getElementById('title').textContent = t.title;
            document.getElementById('protectedServer').textContent = t.protectedServer;
            document.getElementById('scanPorts').textContent = t.scanPorts;
            document.getElementById('beforeLogin').textContent = t.beforeLogin;
            document.getElementById('afterLogin').textContent = t.afterLogin;
            document.getElementById('timeoutStatus').textC