use localized placeholder values for text input fields
This commit is contained in:
1 parent
3ff88ce67f
commit
5d54f574e0
3 files changed
+23
-2
No files matched your search
@@ -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;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in new issue
Block a user