Add bilingual support (German/English) with language selector

- Added language selector in top-left corner
- Implemented data attributes for all translatable text
- Created language management system with localStorage persistence
- Updated all JavaScript functions to support both languages
- Added translations for notifications, error messages, and UI elements
- Maintained existing functionality while adding language switching
This commit is contained in:
2025-09-10 18:42:56 +02:00
parent c84d38b48f
commit 936db67ba4
6 changed files with 239 additions and 66 deletions

View File

@@ -67,5 +67,19 @@
<script src="/js/cookie-consent.js"></script>
<script src="/js/generator.js"></script>
<script>
// Verhindert Enter-Taste in Eingabefeldern
document.addEventListener('DOMContentLoaded', function() {
const inputs = document.querySelectorAll('input, textarea');
inputs.forEach(input => {
input.addEventListener('keydown', function(e) {
if (e.key === 'Enter') {
e.preventDefault();
return false;
}
});
});
});
</script>
</body>
</html>