0ef7e833dd
Split the long four-panel Settings page into hash-driven tabs (Familj, Saldon, Lediga dagar, Allmänt) with a sticky side nav on desktop and a scrollable tab bar on mobile. Each card saves on its own, the profile form is prefilled from the member, and save feedback is a fixed toast. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
32 lines
1.5 KiB
TypeScript
32 lines
1.5 KiB
TypeScript
/**
|
|
* The unified balance flow (`BalanceFlow.tsx`) — shared by Settings' "Saldon"
|
|
* panel and Onboarding's balances step. These keys used to live scattered
|
|
* across `dashboard.ts` (`fetchFromFk`/`enterManually`/`balancePickerPrompt`)
|
|
* before Dashboard stopped owning any balance UI of its own (Phase 5 removes
|
|
* the now-unused originals from `dashboard.ts`) and `onboarding.ts` (per-card
|
|
* status text), plus the QR modal's status enum, previously rendered raw and
|
|
* untranslated.
|
|
*/
|
|
export const balance = {
|
|
'balance.addDeducedPartnerButton': 'Lägg till {name}',
|
|
'balance.deducedBadge': 'Härlett från din FK-hämtning',
|
|
'balance.deducedPartnerPrompt': 'Försäkringskassan visar att den andra föräldern har {days} dagar kvar.',
|
|
'balance.dismissDeducedPartner': 'Nej, jag är ensam förälder',
|
|
'balance.enterManually': 'Ange själv',
|
|
'balance.fetchFromFk': 'Hämta från Försäkringskassan',
|
|
'balance.loading': 'Laddar saldo…',
|
|
'balance.sourceDeduced': 'Härlett {date}',
|
|
'balance.sourceManual': 'Angivet manuellt {date}',
|
|
'balance.sourceScraped': 'Från Försäkringskassan {date}',
|
|
'balance.status.authenticating': 'Autentiserar…',
|
|
'balance.status.awaiting_scan': 'Väntar på skanning',
|
|
'balance.status.cancelled': 'Avbruten',
|
|
'balance.status.done': 'Klar',
|
|
'balance.status.error': 'Fel',
|
|
'balance.status.fetching': 'Hämtar…',
|
|
'balance.status.idle': 'Väntar',
|
|
'balance.status.launching': 'Startar…',
|
|
'balance.statusLine': '{left} av {total} dagar kvar',
|
|
'balance.statusNone': 'Inga uppgifter ännu',
|
|
} as const
|