Closed CptGummiball closed 10 months ago
I tried to expand the script.js with some translation stuff for the search bar placeholder:
async function setPlaceholder() { const placeholder = await getTranslation('MCDEALER_SEARCH_BAR_PLACEHOLDER'); document.getElementById('item-search-input').placeholder = placeholder; }
window.onload = setPlaceholder;
but it not seems to work^^
i also deletet the placeholder from html at line 30, because it will set in the script and not in html this way.
you can try if it works for you. i only get an translation error
I tried to expand the script.js with some translation stuff for the search bar placeholder:
async function setPlaceholder() { const placeholder = await getTranslation('MCDEALER_SEARCH_BAR_PLACEHOLDER'); document.getElementById('item-search-input').placeholder = placeholder; }
window.onload = setPlaceholder;
but it not seems to work^^
i also deletet the placeholder from html at line 30, because it will set in the script and not in html this way.
you can try if it works for you. i only get an translation error