Fix new visitor translation pipeline
Homelab Main / deploy (push) Successful in 1m22s Details

This commit is contained in:
juvdiaz 2026-05-29 12:00:50 -06:00
parent 9a7671b561
commit 4f65136e74
1 changed files with 0 additions and 11 deletions

View File

@ -147,17 +147,6 @@ async function doTranslation() {
function initTranslation() { function initTranslation() {
if (CURRENT_LANG === 'nah' && browserLang !== 'nah') {
if (actionSpan) actionSpan.textContent = 'Switch to';
if (detectedSpan) detectedSpan.textContent = 'English';
if (prompt) prompt.style.display = 'block';
if (btn) btn.addEventListener('click', () => {
window.location.href = window.location.pathname + '?lang=en';
});
return;
}
if (STATIC_LANGS.includes(browserLang)) return; if (STATIC_LANGS.includes(browserLang)) return;
if (browserLang === 'nah') return; if (browserLang === 'nah') return;