Skip to content

Switch Swedish on for organizers and participants - #1019

Merged
richshaw merged 3 commits into
mainfrom
claude/issue-639-ship-swedish
Nov 17, 2026
Merged

richshaw merged 3 commits into
mainfrom
claude/issue-639-ship-swedish

Conversation

@richshaw

@richshaw richshaw commented Nov 16, 2026 •

Copy link
Copy Markdown
Owner

Fixes #639.

The stack

The launch PR of the localization stack (#619): it switches Swedish on for phases 1 and 2. Based on main, which has every PR it needs (#1015, #1016 and #1025 included); review against main. It was built on ccc5f65 and caught up with main after #1025 merged. Owner-gated: it changes what every organizer and participant can see. It gets a tophat and a review, then waits for the owner.

What changes for people

sv joins SHIPPED.participant and SHIPPED.organizer in src/i18n/config.ts. site stays ['en']: the home, help and legal pages are phase 3. That's the whole code change.

  • Organizers get Language in account Settings (English, Svenska). It sets their own screens (the organizer app, the AI assistant's consent screen, their sign-in emails) and the language their new signups start in. Under it, the button that switches their open signups to their language shows when some aren't in it.
  • Each signup gets Signup language on its Settings tab, under "Ask for an email address", saved with the tab's one Save. Its page, sign-up sheet, edit, cancel and unsubscribe pages and its emails follow it, the next reminder to someone already signed up included.
  • A new account stores sv when the browser it signs up in puts Swedish first, on a site with no DEFAULT_LOCALE. Its sign-in pages and first sign-in email are still English, since there's no account yet. That's by design.
  • The REST API and the AI connector take sv wherever they take a language. create_signup's and update_signup's descriptions and every refusal now say "one of: en, sv". Error messages and the connector's instructions stay English.
  • Magic Compose names the organizer's language as the fallback for a description that doesn't show one. The prompt's fixed text is unchanged: __golden__/system-prompt.txt still matches.

What changes for an existing install

No migration and nothing to run. What people see depends on DEFAULT_LOCALE:

What Before After
DEFAULT_LOCALE unset or en English everywhere Existing signups and accounts stay English. Nothing moves by itself.
DEFAULT_LOCALE=sv (accepted and ignored until now) English everywhere Everything with no stored language turns Swedish at once: every existing signup's pages and emails, reminders to people who signed up in English included, every organizer with none stored, the sign-in pages and the sign-in email. The CHANGELOG entry leads with this.
New signups stored no language Every new signup stores one, en included: the organizer's, else the site's, else English. signup.created records it and what chose it. So a signup made after the upgrade keeps its language when DEFAULT_LOCALE changes later; one made before still follows it.
The Responses tab's CSV English column names Follows the organizer's language, not the signup's: a Swedish organizer gets "Namn", "E-post", "Status", "Antal platser", "Kommentar", "Anmäld". A script that reads the English names breaks for them. An English organizer's file is unchanged.
Account Settings Runs one more statement, to count the open signups not in the organizer's language. Neither budgeted request (/s/[slug], the sign-up POST) changes.
Web and worker Each reads DEFAULT_LOCALE itself: give both the same value, or a signup's pages and its reminders disagree. Docker Compose gives both the same .env.
Rolling back Taking sv out again makes every stored sv read as the site's language (the rule is lenient, and tested). Nothing breaks; the stored values come back if sv does.

Don't backfill locale: 'en' onto old signups: leaving them empty is what lets an operator move a whole site with DEFAULT_LOCALE.

A paragraph for release notes:

OpenSignup is now available in Swedish, for organizers and participants. Each organizer picks their language in account Settings, and each signup has its own, on its Settings tab, for its page and its emails. If you already set DEFAULT_LOCALE=sv, every signup and account with no language of its own turns Swedish when you upgrade. New signups now store their language, and the Responses CSV follows the organizer's language. Help, legal and home pages stay English for now. The Swedish was translated and reviewed by machine; corrections are welcome.

The tests

Two commits, so they can be read apart. The first passes on main as it is, with SHIPPED untouched; the second adds the switch.

With the switch on main (ccc5f65), 89 tests failed: 62 unit tests in 23 files and 27 database tests in 13 files. The same 89 the plan found on #1016's head: #1015 and #1016 added none. No e2e test failed.

  • 87 leaned on today's lists without saying so. They test what a language gets before it ships (English pages, no picker, a refused save, E2E_UNSHIPPED_LOCALES) or one audience's list against the other's. That rule is still live: it's what the next language's catalog gets before its launch, and what a stored language gets if it's withdrawn. So they state their starting lists rather than flip: shipOnlyEnglish() in src/i18n/testing/ship.ts ships English alone to every audience for one test, and these tests call it, as beforeEach(shipOnlyEnglish) on a block whose tests all start there, or as the first line of a single test. Their own ship(...) calls stack on top, as before. No assertion changed, and nothing was skipped or loosened. They pass with and without the switch, and will pass at the next launch.
  • 2 changed what they expect: create_signup's and update_signup's locale descriptions are built once, when the tools load, so ship can't reach them. Their tests now read SHIPPED.participant at the same moment and expect "one of: en, sv" from it, so they follow the next launch too.
  • ship.test.ts gains three tests of shipOnlyEnglish (it ships English alone, puts the lists back, and lets a test ship on top).
  • One of them, in open-signups-locale.db.test.ts, refused 'sv' by name, where the same test in the other files uses OTHER_LOCALE; it uses OTHER_LOCALE now.
  • The plan suggested rewording seven account Settings tests to a state a real site can be in (an English organizer with signups in another language). I kept them as they are, pinned: that rewrite would drop their checks that a language's name inside an English sentence carries its own lang.
  • I didn't pin it suite-wide in vitest.setup.ts: the catalog check and config.test.ts's SHIPPED block must read the real lists.

E2e:

  • organizer-language-story.spec.ts takes its launched path for the first time: it picks Svenska in account Settings with the real radio and Save, then (new here) changes the signup's language back to English on its Settings tab and sees the participant page follow, then presses Byt dem till svenska in account Settings and sees both open signups follow. Those two controls had no browser test.
  • The e2e specs' hints for a page not in a test language come from one helper, unshippedHint in tests/e2e/helpers/unshipped-locales.ts. It names E2E_UNSHIPPED_LOCALES only for a language that hasn't shipped; for a shipped one it says the server needs nothing. Before, six hints would have ended in an empty E2E_UNSHIPPED_LOCALES= (or told you to set =sv, which does nothing now).
  • translated-organizer.spec.ts's header no longer says the new signup's fields are "What" and "Date": once the language has shipped, they're named in it.
  • E2E_UNSHIPPED_LOCALES is now empty by itself (UNSHIPPED_LOCALES); with it empty the server logs no warning. So nothing in CI runs the specs' path for a language that hasn't shipped (storeSignupLanguage, the seeded rows); docs/translating.md says so, and that the next language's first PR runs it again.

Docs and help

  • CHANGELOG: a new first entry, leading with what DEFAULT_LOCALE=sv does on upgrade, then new signups storing a language and the CSV, what appears, and what stays English. The Unreleased entries that said none of this had happened yet ("Nothing sets it yet", "so it isn't there yet", "only en so far", "While only English has shipped, which is today…") are reworded, so the release doesn't tell both stories.
  • README: "In English and Swedish" under "Why OpenSignup", linking to docs/translating.md; the DEFAULT_LOCALE paragraph rewritten in the present tense (accepts en and sv; what sv switches; new accounts store none while it's set; web and worker need the same value). .env.example: the same, shorter; DEFAULT_LOCALE= stays bare for env.test.ts.
  • docs/translating.md: Swedish is chosen today; SHIPPED holds it; E2E_UNSHIPPED_LOCALES is empty, and the storeSignupLanguage path no longer runs for Swedish (Test the organizer app in every test language #1016's review); "Changing English" names Swedish as the shipped language; the Launch paragraph is now the next language's steps: add it to both lists, expect no test to need editing (shipOnlyEnglish), re-take the help screenshots that show a language choice, the docs to touch, and the review in context. The decision table keeps its shape (account-language-table.ts reads it).
  • docs/connect-ai-assistant.md: "(only English so far)" → "(English or Swedish)", twice.
  • CLAUDE.md: Swedish has shipped, so a change to en.json translates sv in the same PR; shipOnlyEnglish beside OTHER_LOCALE; the stale E2E_UNSHIPPED_LOCALES=sv pnpm dev. CONTRIBUTING.md names Swedish; the translate skill says no language is unshipped today.
  • Help, "Create and publish your first signup": a new section, "Change your signup's language": what the language changes (the site's words, not the title, slots or fields), that a new signup starts in your own language and where that's set (your email address at the top, or Account on a phone, under Language), three steps on the Settings tab, and that people already signed up see the new language too. Its example language comes from SHIPPED and languageName, not typed. The .ui.ts list gains Signup language, Account and Language, with their catalog keys. The walkthrough gains two tests: the desktop steps (the account's Language, the Settings tab's choice, Save, Saved, the participant page in the new language), which takes the new picture signup-language.png, and the phone's Account link. email-setting.png is re-taken, since the Settings tab's form now holds the language too: new alt text and height. pnpm help:screenshots also rewrote four other pictures with nothing changed but font smoothing; I put those back.
  • A separate article on your own language (account Settings and the switch button) is left as a follow-up; this one points to where it's set.
  • Legal pages: no change. I re-read privacy, cookies and terms. Privacy (updated 15 November 2026) already says the account's language is saved once from the browser's first language unless the site has a default, that it's the sign-in emails' language, that the activity log records an account's and a new signup's language and what chose it, and that AI drafting sends one language's name. All of it becomes true in practice here. No cookie carries a language, and the terms don't mention one. No "Last updated" bump, since no text changed.
  • docs/telemetry.md already describes locale on signup.created and workspace.created.

The launch review

Done in this PR, from the plan's "Do in this PR":

Already fixed on main before this PR (the plan's section 5): <html lang> on every root layout (#1011, #1012), tests for every language (#935, #1016), the viewer's refusal (#619), one Save on the Settings tab (#999), both lists checked to launch together, the 7 participant.share messages, dates in the signup's language on the Build tab and Responses (#951), ?error= codes, the language name's case in a sentence (#979), the wording fixes from #999 and #1010, and UNSHIPPED_LOCALES worked out from both lists.

Known limits

  • React hydration error Use the existing helpers for three rules commitment code spelled out by hand #418 (A React bug logs a false hydration error (React error 418) on pages with long lists #1018) shows now and then on main, in any language (9 of 180 loads of a 13-slot signup, in English). It can fail an e2e test under load; CI retries once. The fix is upgrading to Next 16.
  • A new Swedish organizer's first minutes are English on a site with no default: /login, "Check your email", the confirm page and the first sign-in email. Later sign-in emails are Swedish. By design: nothing is guessed before an account exists.
  • Help, legal and home pages are English (phase 3). A Swedish organizer's Help link opens English pages.
  • The OAuth error page carries the provider's own English ("invalid_client — client is invalid") inside a Swedish page.
  • "För många försök" on the OAuth rate-limit page is shown for a per-address limit, so the tries may not be the reader's.
  • The disabled Preview button's tooltip can't carry a language mark; its hidden description does.
  • A word in another language inside a button isn't announced in that language by screen readers.
  • Dates rely on the browser's and Node's own language data. The Docker image doesn't build without full ICU, but a Node started outside Docker isn't checked.
  • Swedish calls every slot a "pass" (Swedish calls every slot a "pass", a work shift, which reads oddly for a potluck #988, open, the owner's to decide).
  • "Ny lista" is a short form the glossary otherwise avoids, kept for the button's width.
  • Layout at 320 px, in English too: the header crumbs run into Help and Account (The organizer header's crumbs run into Help and Account on a phone #978, open); Build tab rows clip the date; the Spots box is narrow for its placeholder; the slot editor's header overflows. The Swedish unsubscribe buttons wrap at 390 px.
  • At 320 px the Swedish tab strip needs about 356 px, so Inställningar is half off-screen until the strip is scrolled. English fits (The Swedish signup tabs don't fit at 320 px, so Inställningar is half off-screen #1022).
  • Contrast, in English too: the Preview banner's text (4.07:1) and the returning-participant link (4.31:1).
  • Small ones: an unmarked Swedish quote in the own-draft note; the 404 shell under /s has no lang.
  • English account messages mix straight and curly apostrophes ("aren't" and "OpenSignup's" beside "signup’s"), as other English messages do. They're on main already, but people only see account Settings' language messages from this PR on (English messages mix straight and curly apostrophes, sometimes on the same screen #1023).
  • Two budgets are at their limit, before and after: /app/signups/new (119.679 of 119.7 kB) and the Build tab (151.230 of 151.4 kB). Not this PR's doing, but the next change to either fails.
  • No native speaker has read the Swedish (the owner's decision of 13 November).
  • Not covered by any run here: Safari and Firefox (CI runs Chromium), a real screen reader, and a real AI provider. The Magic Compose browser tests ran once against a stand-in (below); one Swedish description through pnpm eval:magic-compose is a cheap check.

Before merging

This changes what every organizer and participant can see, so it waits for the owner. Please look at, at a computer's width and at 390 px:

  • Account Settings: the Language choice (English, Svenska), Save, and the switch button with one and with several open signups in the other language.
  • A signup's Settings tab: "Signup language" under "Ask for an email address", with one Save.
  • As a Swedish organizer: Your signups, New signup, Magic Compose's start and questions, the Build tab (a slot open in the editor, a refused save), Responses and its CSV, the share panel and its message, Connected apps and the consent screen.
  • A Swedish signup as a participant: the page, the sign-up sheet, "Du är anmäld", the edit and cancel pages, unsubscribe, a closed and a full signup, the calendar file.
  • Mixed: an English organizer on a Swedish signup, and the other way round.
  • /login on a site with DEFAULT_LOCALE=sv.
  • Emails as sent, in Swedish and English: the sign-in email with its six-digit code, the confirmation, the reminder, the "time changed" email.
  • Words: the CHANGELOG entry, the README paragraph, and the help page's new section and pictures.
  • Whichever of this and any open PR that changes en.json lands second must translate sv, or the catalog check fails it.

Checks

On the PR's head as built (660725d), in this session:

  • pnpm lint && pnpm format:check && pnpm typecheck && pnpm knip && pnpm test: pass, 3,471 passed and 1 expected fail in 244 files.
  • pnpm test:db: pass, 857 in 47 files.
  • pnpm build && pnpm budgets: pass, no budget changed. Against a build of the first commit alone, every page's first-load JavaScript is within 4 bytes, on pages languages don't touch too (/, /login), so that's chunk-hash noise: shipping a language adds no client JavaScript, as the plan measured.
  • The full e2e suite, Chromium, production build: 226 passed, 4 skipped (Magic Compose's, which need LLM_BASE_URL), 1 failed: the story spec's new steps, on a locator that matched two status regions on the Settings tab. Fixed before pushing; the spec passed on its rerun. React's Use the existing helpers for three rules commitment code spelled out by hand #418 didn't show.
  • The language and help specs again with a stand-in AI provider (LLM_BASE_URL set; the tests answer the drafting call themselves): 48 passed, 0 skipped, so the 4 Magic Compose tests ran.
  • The first commit alone, Swedish not shipped, on its own build: the language specs, a11y and the help walkthroughs, 96 passed, 4 skipped (no AI); pnpm test 3,471 and pnpm test:db 857, all passed. So the tests pass before and after the switch.
  • pnpm translation:screenshots (container config, stand-in AI): passed, 12 email tests and 58 browser tests. 112 Swedish screenshots (56 at a computer's width, 56 at 390 px; 18 of them the organizer's) and the 5 Swedish emails, HTML and text.
  • to-translate.mjs sv and to-translate.mjs sv --audience organizer: 0 missing, 0 stale, 0 unrecorded, 0 extra, 0 unneeded, both.
  • The catalog check, with Swedish shipped (pnpm test src/i18n src/email): pass, 559 tests.
  • pnpm help:screenshots: 10 walkthrough tests passed.

After catching up with main (a53e221, which brings in only #1025's one sv.json line and its glossary item; it merged cleanly):

  • pnpm lint && pnpm format:check && pnpm typecheck && pnpm knip && pnpm test: pass again, 3,471 passed and 1 expected fail.
  • to-translate.mjs sv, both audiences: clean.
  • The tophat (on 660725d) and the code review (on 660725d) still apply: the merge changes no code in this PR.

🤖 Generated with Claude Code

https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt

Tests of what a language gets before it ships (English pages, no picker,
a refused save) and of one audience's list against another's leaned on
SHIPPED holding English alone without saying so. 89 of them (62 unit, 27
database) fail as soon as a language ships.

shipOnlyEnglish() in src/i18n/testing/ship.ts ships English alone to every
audience for one test, and these tests now call it, per block or per test,
so they pass before and after each launch. Their assertions are unchanged.
The two MCP description tests read SHIPPED.participant as the tools did
when they loaded, rather than spelling out "en".

The e2e specs' hints for a page not in a test language come from one
helper, which names E2E_UNSHIPPED_LOCALES only for a language that hasn't
shipped. The story spec presses the signup's own language control and the
switch button in account Settings once its language has shipped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
Add sv to SHIPPED.participant and SHIPPED.organizer. The organizer app,
the consent screen and the sign-in emails follow the organizer's language;
a signup's pages and emails follow the signup's; account Settings and each
signup's Settings tab show their language choices; new signups store the
language they start in. site stays English (phase 3).

The CHANGELOG leads with what DEFAULT_LOCALE=sv does on upgrade, then new
signups storing a language and the CSV following the organizer's
language, and rewords the unreleased entries that said none of this had
happened yet. README, .env.example, docs/translating.md (including the
next language's launch steps), docs/connect-ai-assistant.md, CLAUDE.md,
CONTRIBUTING.md and the translate skill say Swedish has shipped.

"Create and publish your first signup" gains a section on changing a
signup's language, with its names in the UI list, two walkthrough tests
and a new picture; the email setting's picture is re-taken, since the
Settings tab's form now holds the language too. The legal pages already
describe what ships, so they don't change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
@richshaw richshaw added pipeline:tophat pipeline:ux Changes what a person using OpenSignup sees or does pipeline:working A session is working on it right now labels Nov 16, 2026 — with Claude
@richshaw
richshaw requested a balanced review from Copilot November 16, 2026 21:16

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

Copy link
Copy Markdown
Owner Author

Translation review (Swedish), launch, in context

Scope: I reviewed the Swedish screenshots (desktop 1280 and phone 390, all 54 screens), the five rendered emails (text and HTML) and the whole sv.json (704 keys, against en.json and the glossary in docs/translating.md). This was not a live app. The English screenshots weren't in the set, so I compared screens to en.json. The organizer's consent and Connected apps screens and the sign-in pages have no screenshots, so I read those from the catalog only.

Verdict: ready to ship. I found nothing that is wrong in meaning, cut off, or in English where Swedish belongs. The glossary is followed throughout (anmälningslista, pass, plats, arrangör, fält, öppen/stängd, "du", "dela inte mejlet med någon" in all three emails). No key is left in English, and the quotes, dashes, "1 234" numbers and "lör 5 sep." dates are right. Nothing overflows at 390 px.

Must fix before launch

None.

Should fix

  1. participant.unsubscribe.turnedOn.bodyWithEmail (unsubscribe-turned-on). Now: "Du får påminnelser om {title} till {email} igen, …". Two "till" in a row, and a title like "Fika till vårfesten" makes it read as "Fika till vårfesten till deltagare1@…". Suggest: "Du får påminnelser om {title} igen, skickade till {email}, och mejl när datum eller tid ändras. …". The English says "again at {email}".

Nits

  1. Retry wording is inconsistent for the same English "Try again": participant.unsubscribe.turnOnFailed and organizer.signup.refusal.reopenFailed say "Försök en gång till.", while the other 20 or so say "Försök igen.". Suggest "Försök igen." for both.
  2. auth.form.errors.rateLimited ("För många inloggningslänkar har begärts.") is stiff passive. This is open question 4. 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. …".
  3. auth.scopes.offlineAccess: "Förbli ansluten utan att du behöver logga in igen" is stilted. Suggest "Vara fortsatt ansluten utan att du behöver logga in igen".
  4. organizer.build.slot.takenOf on the Build tab shows "0 av 1 upptagna". With a capacity of 1 and none taken, it reads oddly. "0 av 1 upptagen" would agree with the capacity. It is a minor call, so I'd leave it as the glossary has it unless you want to fix it.
  5. organizer.compose.starters.classroom.body: "Sommaravslutning med knytkalas för klass 3". The English is "End-of-year potluck … grade 3". In Swedish schools that would be "Terminsavslutning med knytkalas för årskurs 3".
  6. organizer.compose.questions.what.full: "Du kan ha högst 6. Ta bort en …". The count has no noun. "Du kan ha högst 6 stycken." or "Fler än 6 går inte att lägga till." would be clearer.
  7. participant.errors.closed.join: "Det går inte längre att anmäla sig till det här." is vague next to the English's "this slot". It is fine for a fika signup, but "…till det här passet" is clearer where the sentence can carry it. The glossary says to leave out "pass" where it can, so this is your call.
  8. Open question 5 is still open: "Länk kopierad" on the sheet button against "Länken är kopierad" everywhere else. I'd close it in favour of "Länken är kopierad", for consistency.
  9. On the phone, the signed-up bar breaks inside the date ("Du är anmäld: Kaffe · sön 6 / dec."). A no-break space in the formatted date would stop that. That's code, not catalog.
  10. Phone header on account Settings: "Inställningar" sits very close to "Hjälp" (a few pixels). It doesn't overflow.

Not Swedish text, so no action: the Build tab's native date input shows "mm/dd/yyyy" in the screenshot browser (the browser's locale, not the catalog's "ÅÅÅÅ-MM-DD"). The "Seeded by tests/e2e/…" description is fixture data.

https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt


Generated by Claude Code

Copy link
Copy Markdown
Owner Author

Tophat: passed

Ran 660725d as a real install would: pnpm build && pnpm start, the worker, Postgres 16, a fresh database, no E2E_UNSHIPPED_LOCALES, and no DEFAULT_LOCALE (then DEFAULT_LOCALE=sv for item 6). Chromium at 1280×900, 390×844 and 320×720. Email went over SMTP to a local sink, so every email below is the one actually sent (subject, HTML lang, text). Magic Compose used a local stand-in provider. main (ccc5f65) ran beside it on the same database for the comparison. CI is green on this head.

The owner's story

Check Result What I saw
New account, Swedish browser (Accept-Language: sv-SE) ✅ /login, the sign-in email and the confirm page are English (by design: no account yet). The first page after sign-in is Dina anmälningslistor, <html lang="sv">. The account stores sv, and workspace.created records locale: sv.
New account, English browser ✅ Stores nothing (NULL). The app is English.
English organizer picks Svenska in account Settings, then Save ✅ The page turns Swedish at once (lang="sv"), with Sparat, then "1 av dina anmälningslistor är öppen och är inte på svenska ännu" and Byt den till svenska.
Every organizer screen in Swedish ✅ Checked: Your signups, New signup (by hand), Magic Compose's start and questions screens, the draft it makes, Build (slot editor, Fields dialog, Edit field, a refused save: "Datum kan inte vara före år 1900."), publish, the share panel and its message, the Settings tab, Responses, Connected apps (empty, and with an app), account Settings and the OAuth consent screen. All have lang="sv" at 1280, 390 and 320 px, with no horizontal page scroll. I found no English left over apart from what the organizer typed.
CSV ✅ A Swedish organizer gets Vad,Datum,Namn,E-post,Status,Antal platser,Kommentar,Anmäld, with statuses avbokad/bekräftad. The same file from main is English. An English organizer's file is byte-identical on this PR and on main.
A new signup starts in Swedish ✅ Made by hand: settings.locale: sv, localeSource: setting. Made by Magic Compose: also sv, and the prompt's fallback line says "write in Swedish". Made over REST: sv.

A Swedish signup as a participant (phone, English-language browser)

Check Result What I saw
Public page ✅ <html lang="sv">, og:locale sv_SE, the footer reads Hjälp / Integritetspolicy / Villkor / Cookies / Källkod / Kontakt. Dates appear as "tis 17 nov.".
Sign-up sheet, then "Du är anmäld." ✅ All Swedish. axe finds nothing on the dialog.
Confirmation email ✅ "Du är anmäld: … · Kanelbullar · tis 17 nov.", HTML lang="sv", Swedish body.
Calendar file ✅ Downloaded from Lägg till i kalendern. The DESCRIPTION reads "Ändra eller avboka: ".
Edit link, then cancel ✅ The edit page reads "Din anmälan". Avboka asks "Vill du avboka din anmälan?", and Ja, avboka leads to "Din anmälan är avbokad". The commitment is cancelled.
Unsubscribe (from the reminder) ✅ The page reads "Vill du stänga av påminnelserna?", with Stäng av dem / Behåll dem.
Full slot, closed, draft ✅ A full slot shows "Fullt". A closed signup shows "Anmälan är stängd". A draft shows "Den här anmälningslistan är inte klar ännu". All have lang="sv".

Mixed cases and emails in flight

Check Result What I saw
English organizer switches one signup to Svenska (the Settings tab's one Save) ✅ Saved appears, and the row stores sv. The organizer's own screens stay English, with the signup's dates in Swedish on Build (as designed). The public page turns Swedish.
People already signed up see the new language ✅ The participant who signed up in English sees a Swedish edit page. Their reminder came in Swedish, exactly one ("Påminnelse: …", lang="sv"). After I moved the slot, exactly one time-changed email came, also in Swedish ("Ny tid: …"). The organizer's field labels stay as typed ("What:", "Date:"), as the switch note says.
Swedish organizer switches a signup back to English on its Settings tab ✅ The public page is English, even in a Swedish browser.
Account switch button, 1 signup ✅ Byt den till svenska moved the one English open signup. The page then reads "Sparat. 2 av dina anmälningslistor är öppna, och alla är på svenska nu." (it counts all open signups).
Account switch button, 3 signups ✅ A Swedish organizer switched to English. The page reads "3 of your signups are open and aren't in English yet" and Switch them to English. Pressing it moved exactly those 3. The draft stayed sv.

English unchanged, and the new pickers

Check Result What I saw
English organizer, compared with main ✅ I diffed the text of 9 screens (dashboard, compose, manual new, Build, Settings tab, Responses, account Settings, Connected apps, public page) at 1280 and 390 px and compared the pixels. The only differences are the two new pickers, the port in the public-link chip, and the commit hash in the footer.
The pickers in English ✅ Language (account Settings) and Signup language (Settings tab) read well at 1280, 390 and 320 px. Svenska carries lang="sv", and axe finds nothing on either page.

DEFAULT_LOCALE=sv (web and worker restarted with it)

Check Result What I saw
Sign-in pages and email ✅ /login ("Logga in på OpenSignup"), the "sent" state and the confirm page have lang="sv". The sign-in email to a new address is Swedish.
A new account's language ✅ Stores NULL from both an English and a Swedish browser. The app is Swedish.
A signup with no stored language (made on main) ✅ The public page is Swedish. Its participant, who signed up in English, got a Swedish time-changed email from the worker.
Stored languages win ✅ A signup storing en stays English. An organizer storing en stays English, and one storing sv stays Swedish. A new signup stores sv with localeSource: instance. The /s 404 page is Swedish too.

This matches the PR's "What changes for an existing install" table, row by row.

AI connector, help, accessibility, console

Check Result What I saw
MCP over OAuth (e2e static client, real consent and token) ✅ The consent screen is Swedish. The locale descriptions of create_signup and update_signup say "one of: en, sv". create_signup with locale: "sv" stores sv (localeSource: api, viaClientId). Without locale, it gets the organizer's sv. update_signup to en works. "de" and "SV" are refused with "leave it out, or use one of: en, sv", and REST refuses them the same way.
Sign-in email with code ✅ A Swedish account's sign-in email is Swedish ("Logga in på OpenSignup", lang="sv"). Typing the six-digit code into the window that asked for it signs in to the Swedish app.
Help: "Change your signup's language" ✅ It matches the screens: the email address at the top links to /app/settings (Account on a phone), Language is there, and the three Settings-tab steps and Saved match. The new picture matches the screen.
axe (WCAG A/AA) ✅ No violations on account Settings, the Settings tab, Your signups, Build, Responses, Connected apps, consent, /login (sv), the public page (open, closed, draft), the sign-up dialog, the edit page or unsubscribe. Two contrast findings (the compose eyebrow pill, the Fields dialog's group-by chip) are identical on main in English, so they predate this PR.
Console and server logs ✅ Only the expected 400 (the refused save) and 404s. React #418 (#1018) didn't appear in any load. No server errors.

Notes (none blocking)

  1. The Swedish Settings tab is half off-screen at 320 px. The tab strip's text "Bygg 5 · Anmälningar 1 · Inställningar" needs 356 px, so Inställningar shows half its text at the right edge. The strip scrolls sideways, so it's still reachable. English fits (it ends at 314 px). This isn't in the PR's known limits, and it is the tab the help article sends people to.
  2. At 320 px the header crumb "Inställningar" overlaps Hjälp and Konto. This is The organizer header's crumbs run into Help and Account on a phone #978, known, and happens in English too.
  3. Account Settings mixes apostrophes in English: "aren't" and "OpenSignup's" use straight ones, while "signup’s" uses a curly one. The messages are already on main, but people only see them now.
  4. Date boxes follow the browser's own locale. An English browser shows 11/17/2026 in the Swedish slot editor. That's the browser, not the app.

For the owner

Merging this turns Swedish on. A new organizer whose browser prefers Swedish lands in a Swedish app after their first sign-in. Every organizer gets Language in account Settings and Signup language on each signup's Settings tab. Participants see a signup, its emails, reminders, time-changed emails and calendar file in the signup's language, people who signed up earlier included. English organizers and their signups are unchanged apart from the two pickers. Key screenshots, in story order:

  1. 01-new-account-swedish-browser-dashboard-1280
  2. 02-account-settings-svenska-saved-switch-1-1280
  3. 03-sv-magic-compose-start-1280
  4. 04-sv-build-slot-editor-refused-save-1280
  5. 05-sv-publish-and-share-1280
  6. 06-sv-responses-1280
  7. 07-sv-participant-signup-sheet-390
  8. 08-sv-participant-edit-page-390
  9. 09-sv-confirmation-email
  10. 10-account-switch-3-signups-en-390

Also saved: the reminder email, the DEFAULT_LOCALE=sv login, the consent screen and the 320 px header.

Screenshots are in https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt.


Generated by Claude Code

@richshaw richshaw added pipeline:review pipeline:working A session is working on it right now and removed pipeline:tophat pipeline:working A session is working on it right now labels Nov 16, 2026 — with Claude

@richshaw richshaw left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review: passed (round 1)

The PR adds sv to SHIPPED.participant and SHIPPED.organizer (two lines in src/i18n/config.ts; site stays ['en']), has the tests that assumed English-only lists say so with a new helper, and brings the docs, CHANGELOG and one help article up to date. It does what it says. I found nothing that has to change before the owner decides.

Blocking (0): none.

Optional (5):

  1. participant.unsubscribe.turnedOn.bodyWithEmail in src/messages/sv.json (the translation review's one should-fix): "…påminnelser om {title} till {email} igen" reads badly after a title that ends in "till …". Worth fixing before Swedish is live, since participants see it. I'd do it as a small catalog-only PR to main (English doesn't change, so nothing needs re-marking), merged before this one. A commit here would count as a runtime change and send this PR back through tophat and review. The "Försök en gång till." / "Försök igen." nit can ride along.
  2. The PR body is behind. "The launch review" still says the review in context is "still to come" and that its findings "will be added here before the owner's review". It's done (the translation review comment above). Please add its findings and what was done about each, and add the tophat's 320 px note to "Known limits": the Swedish tab strip needs 356 px, so Inställningar is half off-screen until the strip is scrolled. Body edits only, no commit.
  3. Follow-up issues, none of them for this PR: the 320 px tab strip (Swedish only, still reachable, next to #978); the mixed straight and curly apostrophes in the English account messages (an en.json change, so sv has to be marked again); the translation review's other nine nits as one batch. #992 will need rewording once this merges, since Swedish no longer "drifts until it ships".
  4. src/mcp/tools/signups-write.test.ts lines 26, 322 and 527: the two description tests now build the expected text from SHIPPED.participant, the same expression signups-write.ts line 31 uses. That's the right trade (no edit at each launch), but they can no longer catch the description reading the wrong list. A one-line check that the text names sv would bring that back, at the cost of nothing at the next launch.
  5. The second commit's co-author trailer names a model. History stays as it is, so leave it out of the squash message.

Earlier threads: none. The automated reviewer answered that it couldn't review (quota).

Checks: CI is green on 660725d (lint-type-test, e2e, CodeQL). Locally, on this head and my own database: pnpm lint && pnpm format:check && pnpm typecheck && pnpm knip && pnpm test pass (3,471 passed, 1 expected fail, 244 files); pnpm test:db passes (857 in 47 files); pnpm build && pnpm budgets pass with budgets.json untouched. The tophat passed on this same commit.

What I checked beyond that:

  • The 87 pinned tests. Across every changed src test file, the only removed lines are imports, the two description expectations, and one 'sv' that became OTHER_LOCALE. The added lines are imports, shipOnlyEnglish() (23 times), beforeEach(shipOnlyEnglish) (19) and comments. No skip, todo or fails. I read about 20 of them in context (the CSV export, the public API's settings.locale, createSignup's refusals and its E2E_UNSHIPPED_LOCALES case, the confirmation email, Magic Compose's two "only English" cases, setOpenSignupsLocale, the adapter, the sign-in pages, consent, the MCP tools on Postgres). Each still asserts what its title says, from the state it used to get by accident.
  • Both directions, by running them. With the switch put back to English only, pnpm test and pnpm test:db pass unchanged (3,471 and 857). With a made-up third language added to both lists, one test fails: SHIPPED > ships only languages that have a catalog, which is the guard doing its job. So "no test should need editing at the next launch" holds today.
  • The helper. shipOnlyEnglish calls ship for each audience, so the existing onTestFinished puts the lists back, in a test or in a beforeEach; ship.test.ts checks both. Vitest isolates each file, so nothing leaks across files.
  • Who reads SHIPPED when a module loads. src/mcp/tools/signups-write.ts line 31, as the body says, and one the body doesn't list: the help article's OTHER_LANGUAGE (create-and-publish-a-signup.tsx line 16). It's a static page and no test pins it, so nothing is wrong; the walkthrough reads the list the same way.
  • New accounts. newOrganizerLocale now stores Swedish for a browser that asks for it first, on a site with no DEFAULT_LOCALE. That is the owner's rule of 14 November, as the function's comment and the table in docs/translating.md state it; nothing in it changed here.
  • "What changes for an existing install". Each row matches the code: resolveLocale and newSignupLocale (which stores nothing only while one language has shipped), the CSV following the organizer, the descriptions and refusals reading the list. No migration, and nothing stored today can be sv, since every write path refused it.
  • Legal pages. Privacy (15 November) already says the account's language is saved once from the browser's first language unless the site has a default, that it's the sign-in emails' language, what the activity log records, and what goes to the AI provider. Cookies and terms don't mention a language. No change is right.
  • Help. The new section follows docs/writing-help.md; its three new names are in the UI list with catalog keys, the walkthrough clicks them, and both pictures match the screen.
  • No personal data, secrets or plan text in the diff.

For the owner (gate: UX, the launch itself). Merging switches Swedish on for every organizer and participant. The tophat's screenshots are in story order in its comment. The three things I'd look at: the CHANGELOG entry's first two sentences (what DEFAULT_LOCALE=sv does on upgrade), the help page's new section, and whether item 1 above lands first.

https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt


Generated by Claude Code

@richshaw richshaw added pipeline:merge and removed pipeline:owner Passed; waits for the owner (UX or high-risk) labels Nov 17, 2026
@richshaw
richshaw merged commit 13722f4 into main Nov 17, 2026
5 checks passed
@richshaw
richshaw deleted the claude/issue-639-ship-swedish branch November 17, 2026 01:34
richshaw pushed a commit that referenced this pull request Nov 17, 2026
#1016 added translated-organizer.spec.ts, which already saves the organizer
screens on the way to a published signup. Keep that as the base, and from
organizer-language.spec.ts save only the screens and states it doesn't reach,
under names that don't clash with its own. Drop the Build tab spec's shots,
which repeat main's, and the note that account Settings' language choice has
no screenshot, which #1019 made untrue.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVwh9pcQeEc28jgf1b
@richshaw richshaw removed pipeline:merge pipeline:ux Changes what a person using OpenSignup sees or does labels Nov 17, 2026 — with Claude
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Signups can't be in Swedish yet

3 participants