fix: timezone-aware CalDAV sync and English as i18n fallback (#43)

- Apple CalDAV: ICS events with TZID parameter are now converted to UTC
  using the Intl API instead of being stored as floating local time,
  fixing wrong start times for events synced from iOS Calendar
- i18n: fallback language for unsupported browser locales changed from
  German to English
This commit is contained in:
Ulas
2026-04-13 09:20:27 +02:00
parent 61e663ef72
commit d68226d11e
3 changed files with 81 additions and 17 deletions
+2 -2
View File
@@ -13,7 +13,7 @@ let currentLocale = DEFAULT_LOCALE;
let translations = {};
let fallbackTranslations = {};
/** Resolve locale: manual override > navigator.language > default */
/** Resolve locale: manual override > navigator.language > English > default */
function resolveLocale() {
const stored = localStorage.getItem(STORAGE_KEY);
if (stored && SUPPORTED_LOCALES.includes(stored)) return stored;
@@ -23,7 +23,7 @@ function resolveLocale() {
const base = tag.split('-')[0].toLowerCase();
if (SUPPORTED_LOCALES.includes(base)) return base;
}
return DEFAULT_LOCALE;
return 'en';
}
/** Lade eine Locale-JSON-Datei */