Repository navigation
Description
Needs your OK: this changes Swedish wording people read (the sign-in limit, the AI assistant's consent screen, New signup, the sign-up sheet) and keeps a slot's date on one line. Swap pipeline:proposed for pipeline:ready to have it built.
What happens
The in-context translation review on #1019 (its comment) found Swedish ready to ship: 0 must-fix, 1 should-fix and 10 nits. The should-fix ("till … till" in participant.unsubscribe.turnedOn.bodyWithEmail) and nit 1 (the retry wording) are fixed in a separate PR, merged before #1019. These are the other nine, numbered as the review numbers them:
auth.form.errors.rateLimitedreads "För många inloggningslänkar har begärts.", a stiff passive. This is the glossary's open question 4. The review offers a third option that keeps the verb: "Du har begärt för många inloggningslänkar. Du kan behöva vänta upp till en timme. …".auth.scopes.offlineAccesson the AI assistant's consent screen: "Förbli ansluten utan att du behöver logga in igen" is stilted. Suggested: "Vara fortsatt ansluten utan att du behöver logga in igen".organizer.build.slot.takenOfon the Build tab shows "0 av 1 upptagna", because the plural follows how many are taken (0). "0 av 1 upptagen" would agree with the capacity. The review calls it minor and would leave it.organizer.compose.starters.classroom.body, the classroom starter on New signup: "Sommaravslutning med knytkalas för klass 3". A Swedish school would say "Terminsavslutning med knytkalas för årskurs 3".organizer.compose.questions.what.full: "Du kan ha högst 6. Ta bort en …" has no noun after the number. Suggested: "Du kan ha högst 6 stycken." or "Fler än 6 går inte att lägga till.".participant.errors.closed.join: "Det går inte längre att anmäla sig till det här." is vague next to the English "this slot". "…till det här passet" is clearer, but the glossary leaves out "pass" where it can, and Swedish calls every slot a "pass", a work shift, which reads oddly for a potluck #988 asks whether "pass" is right at all.- "Länk kopierad" or "Länken är kopierad" (the glossary's open question 5). The sign-up sheet's button (
participant.dialog.linkCopied) says "Länk kopierad", while the same sheet's announcement (participant.dialog.copied) and the share panel say "Länken är kopierad". The review would settle it on "Länken är kopierad". - On a phone, the signed-up bar breaks inside the date: "Du är anmäld: Kaffe · sön 6 / dec.". The date comes from
formatSlotDateinsrc/lib/slot-label.ts(throughrenderFieldValue), which returns the plain spacesIntlgives it. This one is code, not catalog. - On a phone, account Settings' header crumb "Inställningar" sits a few pixels from "Hjälp". It doesn't overflow at 390 px. At 320 px it does, which is The organizer header's crumbs run into Help and Account on a phone #978.
Fix, in outline
- Wording (2 to 8): change
src/messages/sv.jsonas "Choices this makes" says, with thetranslateskill, so each change is reviewed in context. English doesn't change. - The glossary: in
docs/translating.md, move open questions 4 and 5 to the settled ones, with what was chosen, and add the school terms if they're kept. - The date (9): have
formatSlotDatejoin the date's parts with no-break spaces (U+00A0), asformatSlotTimealready does before "PM", so a date never breaks across two lines. A unit test pins it. - The header (10): nothing here. The organizer header's crumbs run into Help and Account on a phone #978 fixes the crumbs; after it, look at account Settings in Swedish at 390 px once more.
Watch for
- The date shows everywhere.
formatSlotDatefeeds the signup page, the Build tab, Responses, the share message (src/lib/share-message.ts), and the emails' slot lines and subjects. Tests that type a formatted date ("lör 3 maj", "Sat, Apr 25") need the no-break space. Change what they expect; don't loosen them. - The copied button (8) is a button label: "Länken är kopierad" is longer, so check it stays on one line at 320 px.
- Swedish calls every slot a "pass", a work shift, which reads oddly for a potluck #988 may rename "pass" everywhere. Leave 7 to it.
- Overlap. The separate PR for the should-fix and nit 1 also changes
sv.json. Whichever lands second has a small merge.
Choices this makes
Defaults, so you can approve as is or edit this section first:
- 2, the sign-in limit: the review's third option, "Du har begärt för många inloggningslänkar. Du kan behöva vänta upp till en timme. …". It keeps the verb of "Begär en ny länk" and says who asked. Settles open question 4.
- 3, the consent screen: "Vara fortsatt ansluten utan att du behöver logga in igen".
- 4, "0 av 1 upptagna": leave it, as the review suggests. The plural follows how many are taken, which reads right for every count but this one.
- 5, the classroom starter: "Terminsavslutning med knytkalas för årskurs 3", what a Swedish school calls it.
- 6, the limit on things: "Du kan ha högst 6 stycken.", the smaller change.
- 7, a closed slot: leave it until Swedish calls every slot a "pass", a work shift, which reads oddly for a potluck #988 settles "pass". It reads fine for a fika signup.
- 8, the copied button: "Länken är kopierad", like the rest of the sheet. Settles open question 5.
- 9, the date: no-break spaces in every language, not just Swedish, so one rule keeps every date on one line.
- 10, the header: nothing beyond The organizer header's crumbs run into Help and Account on a phone #978.
Done when
sv.jsoncarries the chosen wording, reviewed through thetranslateskill, andto-translate.mjs svandto-translate.mjs sv --audience organizerreport 0 missing and 0 stale.docs/translating.mdsettles open questions 4 and 5.formatSlotDatereturns no plain spaces, and a unit test pins it.pnpm lint && pnpm format:check && pnpm typecheck && pnpm knip && pnpm testpass, andpnpm test:dbtoo if a test there pins a formatted date.
From the in-context translation review on #1019 (its nits 2 to 10), which #1019's review asked to file as one batch. Checked against sv.json, docs/translating.md and src/lib/slot-label.ts on main at ccc5f65. https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
Activity