File size: 1,472 Bytes
e6aa2e0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Language management
const translations = {
    en: {
        heroTitle: "Secure Your PII Data Across All Cloud Platforms",
        heroSubtitle: "Advanced protection for AWS RDS, DynamoDB, OpenSearch and more",
        featuresTitle: "Comprehensive PII Protection",
        pricingTitle: "Custom Pricing for Your Needs",
        contactTitle: "Request a Personalized Quote"
    },
    pt: {
        heroTitle: "Proteja Seus Dados PII em Todas as Plataformas Cloud",
        heroSubtitle: "Proteção avançada para AWS RDS, DynamoDB, OpenSearch e mais",
        featuresTitle: "Proteção Abrangente de PII",
        pricingTitle: "Preços Personalizados para Suas Necessidades",
        contactTitle: "Solicite um Orçamento Personalizado"
    }
};

function updateLanguage(lang) {
    document.documentElement.lang = lang;
    // Update all elements with data-i18n attributes
    document.querySelectorAll('[data-i18n]').forEach(el => {
        const key = el.getAttribute('data-i18n');
        el.textContent = translations[lang][key];
    });
}

// Initialize with English
updateLanguage('en');

// Form submission
document.getElementById('contactForm')?.addEventListener('submit', function(e) {
    e.preventDefault();
    const formData = new FormData(this);
    const data = Object.fromEntries(formData);
    console.log('Form submitted:', data);
    alert('Thank you for your request! We will contact you soon with a personalized quote.');
    this.reset();
});