use localized placeholder values for text input fields

This commit is contained in:
stefan.tollkuehn committed 2026-10-22 16:00:30 +02:00
1 parent 3ff88ce67f
commit 5d54f574e0
3 files changed
+23 -2

No files matched your search

+13
View File
@@ -91,6 +91,19 @@ function applyTranslations() {
element.textContent = value;
}
});
/*
* Platzhalter von Eingabefeldern übersetzen.
*/
document
.querySelectorAll("[data-i18n-placeholder]")
.forEach((element) => {
const value = getTranslation(element.dataset.i18nPlaceholder);
if (value !== null) {
element.placeholder = value;
}
});
}
/*