Repository navigation
Closed
Labels
enhancementNew feature or request
Description
What happens
evals/magic-compose/dev-evals.jsonhas 45 cases, and one is Swedish:ev_042_swedish_description_drafts_in_swedish, a Swedish description from an organizer with no language set.- None covers:
- an organizer whose language is Swedish;
- Swedish dates and times ("lördag 12 december kl. 11–14", "lördagar från 25 april till 30 maj");
- Swedish column names;
- the questions flow in Swedish;
- an English description that only mentions Swedish words, which should stay English.
- Magic Compose's output varies from run to run and model to model, so this is the one part of translation that needs a real eval rather than a review.
Fix, in outline
Add about five cases, using the checks the harness already has (language_must_be and the field and slot checks):
- A Swedish organizer's knytkalas: one Saturday, 11:00–14:00, a few dishes. Expect Swedish, a date field, 24-hour times and capacities.
- Volunteer shifts: "tre pass på 2 timmar varje dag, två volontärer per pass". Expect one slot per shift, with capacity 2.
- A fika list over a range of Saturdays. Expect one slot per date.
- A Swedish description too vague to draft ("Fikalista till klassen"). Expect questions, with
whatOptionsin Swedish. - An English description naming Swedish things ("Midsommar picnic, bring sill and potatoes"). Expect English.
Watch for
- Follow the README's rules for a case's
behaviorandrationale, and its language markers (scripts/lib/eval-harness.ts). Add a marker word if Swedish lacks one a case needs. prompt.test.tsandeval-harness.test.tsread the file, so a malformed case failspnpm test.- Don't invent dates the prompt doesn't give (the MCP server instructions say the same).
Order
After #927, because the prompt's language rule these cases test lands there.
Done when
- The cases are in
dev-evals.jsonand pass the harness's own tests. - One run on the default model is in the PR, with each new case's result.
pnpm lint && pnpm typecheck && pnpm knip && pnpm testpass.
Part of #994, keeping translation quality up in everyday work. Checked against dev-evals.json on the localization stack merged locally at 33c8c0d.
Generated by Claude Code
Metadata
Metadata
Assignees
Labels
enhancementNew feature or request
Activity