Its good this for seo?

is this good for seo, when it is in javascript ?

  // Hlavní stránka

window.customSettingsHomeNabidka = {
prehraj_video: “Přehraj video”,
kontaktujte_nas: “Kontaktujte nás”,
kontaktujte_nas_url: “/kontakt”,
tlacitko_nazev : “Prohlédněte si naši nabídku”,
tlacitko_url : “/nabidka”,
tlacitko_kontakt_nazev: “Kontakty”,
tlacitko_kontakt_url: “/kontakt”
};

// Funkce pro aktualizaci hodnoty custom settingu v patičce
function updateCustomSettingValue() {
var tlacitkoNazev = window.customSettingsHomeNabidka ? window.customSettingsHomeNabidka.tlacitko_nazev : null;
var tlacitkoUrl = window.customSettingsHomeNabidka ? window.customSettingsHomeNabidka.tlacitko_url : null;
var tlacitkoKontakt = window.customSettingsHomeNabidka ? window.customSettingsHomeNabidka.tlacitko_kontakt_nazev : null;
var prehraj_video = window.customSettingsHomeNabidka ? window.customSettingsHomeNabidka.prehraj_video : null;
var kontaktujte_nas = window.customSettingsHomeNabidka ? window.customSettingsHomeNabidka.kontaktujte_nas : null;
var kontaktujte_nas_url = window.customSettingsHomeNabidka ? window.customSettingsHomeNabidka.kontaktujte_nas_url : null;

  var prehrajV = document.getElementById('prehrajVideo');
  if(prehrajV){
      prehrajV.innerText = prehraj_video;
  }
  var kontaktujteN = document.getElementById('kontaktujteNas');
  if(kontaktujteN){
      kontaktujteN.innerText = kontaktujte_nas;
       kontaktujteN.href = kontaktujte_nas_url;
  }

  
  
  
  
  
  
var tlacitkoN = document.getElementById('tlacitkoNazev');
  if(tlacitkoN){
      tlacitkoN.innerText = tlacitkoNazev;
  }
  
var tlacitkoU = document.getElementById('tlacitkoNazev')
 if(tlacitkoU){
     tlacitkoU.href = tlacitkoUrl;
  }



  



var tlacitka = document.querySelectorAll('.tlacitkoKontakt');

tlacitka.forEach(function(tlacitko) {
   if (tlacitko) {
tlacitko.innerHTML = tlacitkoKontakt;
tlacitko.addEventListener('click', redirectToCustomUrl);

} else {
console.error(“Tlačítko s třídou ‘tlacitkoKontakt’ neexistuje.”);
}
});

}

function redirectToCustomUrl() {
var tlacitkoKontaktUrl = window.customSettingsHomeNabidka ? window.customSettingsHomeNabidka.tlacitko_kontakt_url : null;

// Zkontrolujte, zda je tlacitkoKontaktUrl definováno a není prázdné
if (tlacitkoKontaktUrl && tlacitkoKontaktUrl.trim() !== "") {
    var customUrl = tlacitkoKontaktUrl; // Změňte podle potřeby
    location.href = customUrl;
} else {
    console.error("Nelze přesměrovat na neplatnou URL.");
}

}

// Volání funkce pro aktualizaci hodnoty při načítání stránky
document.addEventListener(‘DOMContentLoaded’, updateCustomSettingValue);

// Volání funkce pro aktualizaci hodnoty při změně velikosti okna (můžete upravit podle potřeby)
window.addEventListener(‘resize’, updateCustomSettingValue);

And this not working directly

{{@site.customSettingsHomeNabidka.tlacitko_nazev}}

How create custom fields for good seo practices, and this is bad practices for SEO ?

Javascript or any scripts, is always bad for seo.

I need multilanguage site, and two ghost cms for one language… what is bad experience for seo ? Weglot is javascript too… How I can make any more custom fields ?

I found this and this is what client need enough