feat: add i18n support for Italian, Spanish, Portuguese and Russian
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user