feat(infra): typesafe-i18n Integration fuer Compile-Time-Sicherheit #136
Labels
No labels
component/backend
component/docs
component/e2e
component/frontend
component/infra
component/keycloak
prio/high
prio/low
prio/medium
type/bug
type/chore
type/feature
type/refactor
type/test
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
WompSchmiede/FamilienFeierPlaner#136
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Beschreibung
Aktuell werden Uebersetzungs-Keys als String-Literale verwendet:
t('common.save'). Tippfehler werden erst zur Laufzeit (via Fallback-Mechanismus) oder im Key-Gleichheits-Test erkannt.Ziel:
t('path.to.key')durchLL.path.to.key()ersetzen, sodass TypeScript Tippfehler bereits waehrend der Entwicklung erkennt (Compile-Error statt Laufzeit-Fallback).Vorteile
common.svaestattcommon.save) werden sofort als Compile-Error gemeldetAnforderungen
typesafe-i18noder alternativer Bibliotheken (z. B.i18nextmit TypeScript-Wrappern)npm run generate:i18n)i18n.svelte.ts): Store stelltLL-Objekt stattt()-Funktion bereitt()-Aufrufe aufLL.path.to.key()-SyntaxAbhaengigkeiten