Fix new visitor translation pipeline
Homelab Main / deploy (push) Successful in 1m22s
Details
Homelab Main / deploy (push) Successful in 1m22s
Details
This commit is contained in:
parent
9a7671b561
commit
4f65136e74
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue