feat(i18n): fix remaining hardcoded strings + login page language switcher #16
Reference in New Issue
Block a user
Delete Branch "feat/i18n-missing-strings"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
de.json,en.json,es.json— covering document preview errors, tooltips, image alt text, date fallback, merge warning suffix, and admin delete confirmdocuments/[id]/+page.svelte— 6 hardcoded strings replaced withm.*()(preview error, download tooltip, tag filter tooltip, conversation tooltip, iframe title, image alt)persons/[id]/+page.svelte—"wird gelöscht."and"Kein Datum"replacedadmin/+page.svelte—confirm()dialog replaced withm.admin_user_delete_confirm({ username })login/+page.svelte— DE/EN/ES language switcher added top-right (Option B), form labels wired to existinglogin_*keysCloses #12
Test plan
npm run checkpasses (0 errors)🤖 Generated with Claude Code
Paraglide's client-side setLocale writes the locale via document.cookie, which silently fails for HttpOnly cookies. SvelteKit's cookies.set() defaults to httpOnly: true, so locale switching never worked in tests. Fix by setting httpOnly: false on the locale cookie (it's a UI preference, not a credential — no security concern). Add waitForSelector('[data-hydrated]') before any click that relies on SvelteKit JavaScript event handlers. Without this, the click fires before hydration and the onclick handler is not yet registered. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>60189d6672tofe9b4a9569