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

@@ -9,7 +9,11 @@ const supabase = window.supabase.createClient(SUPABASE_URL, SUPABASE_ANON_KEY);
async function checkAuth() {
const { data: { session } } = await supabase.auth.getSession();
if (session) {
window.location.href = '/';
// Show a message that user is already logged in
showMessage('Sie sind bereits eingeloggt! Weiterleitung zum Dashboard...', 'success');
setTimeout(() => {
window.location.href = '/';
}, 2000);
}
}