diff --git a/public/index.html b/public/index.html index 262f536..6366c3f 100644 --- a/public/index.html +++ b/public/index.html @@ -35,7 +35,7 @@ - + Savic Suite Royale XL @@ -48,7 +48,7 @@ - + Savic Suite Royale 95 Double @@ -61,7 +61,7 @@ - + TIAKI Kleintierkäfig Étagère diff --git a/src/index.js b/src/index.js index fe0905f..096234c 100644 --- a/src/index.js +++ b/src/index.js @@ -35,13 +35,11 @@ function translatePageElements() { }); // Translate alt texts const translatableAltTexts = document.querySelectorAll( - "[alt]", + "[alt-i18n-key]", ); translatableAltTexts.forEach((el) => { - const translation_key = el.getAttribute("alt"); - console.log(el); + const translation_key = el.getAttribute("alt-i18n-key"); el.setAttribute("alt", i18next.t(translation_key)); - console.log(i18next.t(translation_key)); }); }