bd996245ba
sv.ts/en.ts were single 602-line files that every feature had to edit,
making concurrent work on unrelated screens collide constantly. Split
both into per-domain modules (common, auth, calendar, dashboard,
settings, plan, wishEditor, tips) composed by an index that preserves
the existing `import { sv } from './sv'` specifier, so no consumer
changes.
Typing still catches drift in both directions: each en module is checked
against TranslationKey, and the composed catalogue must satisfy
Record<TranslationKey, string>.
All 433 keys and their values are byte-identical to the originals,
verified by diffing the parsed catalogues against the pre-split files.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RXMhc9nT6sNz1SL4j8dznL
13 lines
469 B
TypeScript
13 lines
469 B
TypeScript
export const auth = {
|
|
'auth.createAccountButton': 'Skapa konto',
|
|
'auth.createAccountTitle': 'Skapa konto',
|
|
'auth.emailPlaceholder': 'E-post',
|
|
'auth.genericError': 'Något gick fel',
|
|
'auth.haveAccountButton': 'Har redan konto',
|
|
'auth.loadingEllipsis': 'Laddar…',
|
|
'auth.loginButton': 'Logga in',
|
|
'auth.loginTitle': 'Logga in',
|
|
'auth.namePlaceholder': 'Namn',
|
|
'auth.passwordPlaceholder': 'Lösenord',
|
|
'auth.registerButton': 'Registrera',
|
|
} as const |