diff --git a/static/webui/script.js b/static/webui/script.js index 25f1ffe3..331fa547 100644 --- a/static/webui/script.js +++ b/static/webui/script.js @@ -220,6 +220,13 @@ function updateLocElements() { .join(", "); elm.title = `${loc("worldState_incompatibleWith")} ${incWith}`; }); + document.querySelectorAll("[data-loc-info]").forEach(elm => { + const incWith = elm + .getAttribute("data-loc-info") + .split("|") + .map(key => loc(key)); + elm.title = `${incWith}`; + }); document.querySelectorAll("[data-loc-replace]").forEach(elm => { elm.innerHTML = elm.innerHTML.replace("|VAL|", elm.getAttribute("data-loc-replace")); });