// Select all language options
document.querySelectorAll('.dropdown-content a').forEach(languageOption => {
    languageOption.addEventListener('click', function(event) {
      event.preventDefault();
  
      // Get the selected language
      const selectedLanguage = this.getAttribute('data-lang');
  
      // Perform your desired action with the selected language
      console.log('Selected language:', selectedLanguage);
  
      // You could add code to change the website's language or redirect to a language-specific version.
    });
  });
  