Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@
// Form state
// Restored from the last visit (#23); the examples only fill a first visit.
const saved = loadWizardInputs();
let language = $state<'formal' | 'informal' | null>(saved?.language ?? null);
// Pre-select "formal" so the Sie/Du buttons never start empty — the agent
// would default to it anyway, and the previous "nothing selected" state
// left the user guessing which side of the toggle was active.
let language = $state<'formal' | 'informal'>(saved?.language ?? 'formal');
// Language of every question, label, hint and title (#39). Defaults to
// German to match the rest of the toolchain.
let surveyLanguage = $state<'de' | 'en'>(saved?.surveyLanguage ?? 'de');
Expand Down Expand Up @@ -70,7 +73,7 @@
targetGroup = '';
useOfResults = '';
furtherNotes = '';
language = null;
language = 'formal';
surveyLanguage = 'de';
selectedDemographics = [];
resetResult();
Expand Down Expand Up @@ -173,7 +176,7 @@
researchQuestions,
targetGroup,
useOfResults,
language: language || 'formal',
language,
surveyLanguage,
selectedDemographics,
demographicQuestions: demographicQuestions(selectedDemographics),
Expand Down
Loading