 => {
                document.querySelectorAll('[data-translate-key]').forEach(element => {
                    const key = element.getAttribute('data-translate-key');
                    if (translations[lang] && translations[lang][key]) {
                        if (element.tagName === 'META' && element.name === 'description') {
                            element.setAttribute('content', translations[lang][key]);
                        } else {
                            element.innerHTML = translation