{
                languageSelected(event, item);
            });
        }
    }

    function languageSelected(event, itemClicked) {
        const selectedLanguage = itemClicked.dataset.value; //'en', 'fr', 'es', '..'
        if (currentLanguage === selectedLanguage) return;
        document.location = document.location.href.replace(`/${currentLanguage}/`, `/${selectedLanguage}/`);
    }

    function initializePage() {
        addEventListenerToLanguages();
        replaceMainBreadcrumbLink();
    }
    w