Files
F-r-ldraledigplannerare/frontend/src/i18n/sv/index.ts
T
jacobh2 a4fce16dd1 Give a new account a first run, and drop to three tabs
Registering used to land you on a bare form asking for a child, with no hint
what came next. A short wizard now walks through the child, whether you are
planning alone or together, and where the day balances come from: fetched from
Försäkringskassan, entered by hand, or skipped — and if skipped, the figures
carry a badge saying they are estimates until real ones arrive.

Fetching is the first option rather than a hidden one, so the scraper is on by
default and the script that used to force it on no longer needs to.

Planning and Tips lose their tabs. Authoring moved to the calendar and the
figures moved to the overview, so both pages were only a second way to reach
what is already on screen; their routes now redirect rather than dead-end. The
dead translations went with them.

Dates also follow the chosen language now instead of always formatting as
Swedish.
2026-09-17 22:05:54 +02:00

35 lines
1.0 KiB
TypeScript

import { common } from './common'
import { auth } from './auth'
import { calendar } from './calendar'
import { dashboard } from './dashboard'
import { onboarding } from './onboarding'
import { settings } from './settings'
import { plan } from './plan'
import { wishEditor } from './wishEditor'
import { tips } from './tips'
/**
* Swedish message catalogue — the single source of truth for translation keys.
*
* Split into per-domain modules so unrelated features can add keys without
* editing the same file. `en/` mirrors this structure exactly and is typed
* against `TranslationKey`, so a key present in one locale and missing from
* the other is a compile-time (`npm run typecheck`) error.
*
* These strings were extracted verbatim from the components that previously
* hardcoded them — this file is the authoritative Swedish copy.
*/
export const sv = {
...common,
...auth,
...calendar,
...dashboard,
...onboarding,
...settings,
...plan,
...wishEditor,
...tips,
} as const
export type TranslationKey = keyof typeof sv