feat: add i18n support for Italian, Spanish, Portuguese and Russian

This commit is contained in:
2026-02-08 09:56:43 +01:00
parent a5995857e8
commit c66b77dbf8
10 changed files with 1556 additions and 10 deletions

View File

@@ -377,6 +377,21 @@ class PageHome extends HTMLElement {
})
}
const priceBtn = this.querySelector('#toggle-price-filter span')
if (priceBtn) priceBtn.textContent = t('search.priceRange')
const clearBtn = this.querySelector('#clear-filters')
if (clearBtn) clearBtn.textContent = t('search.clearAll')
const applyBtn = this.querySelector('#apply-price')
if (applyBtn) applyBtn.textContent = t('search.apply')
const minInput = this.querySelector('#min-price')
if (minInput) minInput.placeholder = t('search.min')
const maxInput = this.querySelector('#max-price')
if (maxInput) maxInput.placeholder = t('search.max')
const searchBox = this.querySelector('search-box')
if (searchBox) searchBox.loadAndRender()
}