Skip to content

Add a guide to translating OpenSignup, a Swedish glossary and a translate skill - #929

Merged
richshaw merged 148 commits into
mainfrom
claude/issue-637-translating-guide
Nov 16, 2026
Merged

richshaw merged 148 commits into
mainfrom
claude/issue-637-translating-guide

Conversation

@richshaw

@richshaw richshaw commented Nov 14, 2026 •

Copy link
Copy Markdown
Owner

Part of #637: the first of its two parts, the guide, the Swedish glossary, the translate skill, the flag that saves screenshots and email HTML for the review, and the CLAUDE.md and CONTRIBUTING.md rules. The stale-translation record and its check are the second part, in the next PR.

Merge after #927.

The stack

PR 36 of the localization stack (#619). Based on #927 (claude/issue-635-prompt-language); review against that branch. #928 was closed on 14 November 2026; 793e4f1 takes its changes back out, so this PR now sits on #927.

The problem

The stack has moved every participant string into src/messages/ and added a partial machine-made sv.json, but nothing tells the next person (or the next Claude session) how the catalogs work, how to write a plural or a select that survives translation, what the catalog check does and doesn't catch, when a language can be offered, or which Swedish words the stack settled on. The owner can't pay translators, so translations are made and reviewed by machine (#619, 13 November), and that needs a repeatable process: a skill to follow, and screenshots and rendered emails for a second model to review from.

The fix

  • docs/translating.md, in docs/writing-help.md's plain style, checked line by line against the code on this branch:
    • where the words live: src/messages/, namespaces by audience (AUDIENCE_NAMESPACES), what each holds today, what isn't in the catalogs (organizer app, sign-in email, API errors and tool descriptions), and English filling a partial catalog;
    • how a message reaches the screen: signupLocale/emailLocale, getServerTranslator, ClientMessages with messagesFor and client-namespaces.ts, en.d.json.ts, the two formatters, TRANSLATED in the lint config;
    • writing messages, with examples from the real catalogs: placeholders, whole sentences, plurals (text moved into branches, as keepsYours; a plural Swedish adds where English has none, slot.signedUp), selects (the leading space in email.confirmation.keep is part of the text), tags, ::group-off as English's choice and Swedish's "1 234", skeletons never style names, apostrophes, the lowercased label in "(no {label})", and the double full stop after a name ending in "dec.";
    • what the catalog check catches, and what no check catches (a number dropped from one plural branch, a missing plural category, untranslated English, branch spaces, meaning and length, unshipped gaps, stale translations);
    • CATALOG_LOCALES vs SHIPPED, what shipping a language turns on, and E2E_UNSHIPPED_LOCALES as tests-only (with the reused pnpm dev case);
    • changing English, adding a language end to end, and how translations are made and checked.
  • The Swedish glossary, at the end of the guide: the terms Add a partial Swedish catalog and a Swedish test signup #914 and Take the edit, cancel and unsubscribe pages' text from the catalog #916 used (anmälningslista, anmäl dig/anmälan, pass, plats, arrangör, deltagare, avboka/Avbryt, Behåll, Ändra, Fullt, Stängd/Stängt, ledig vs öppen, e-post/mejl, påminnelse), du not ni, dates and times as the app formats them ("lör 3 maj", "lör 5 sep.", "18:30"), "1 234", and nine open questions for Signups can't be in Swedish yet #639. Two of those are places where the catalog disagrees with itself today, said as such rather than smoothed over: din plats (edit page, cancelled page, emails) vs din anmälan (sheet, row), and "Stängd" (signup page banner) vs "Stängt" (edit page banner). The others: whether a spot can be "open" (Say "open" for a signup people can sign up on, not "live" #888's review: Swedish keeps ledig for spots, öppen for a signup), pass for things to bring, "({label} saknas)" vs "(utan {label})", the smaller wording notes from Add a partial Swedish catalog and a Swedish test signup #914's and Write participant emails from the catalog, in the signup's language #920's tophats, the unsubscribe buttons wrapping at 390 px, "Du är anmäld som" for "You're editing this as", and "listan" as the only short form of anmälningslista (the last two, and the closed banner's "din plats", from this PR's tophat).
  • The translate skill (.claude/skills/translate/), shaped like help-pages, following There's no guide for translating OpenSignup, and no Swedish glossary #637's four steps with concrete commands that work in Claude's cloud container:
    1. pnpm exec tsx .claude/skills/translate/scripts/to-translate.mjs sv [base] [--audience …] lists, namespace by namespace, each message that's missing, stale (English changed on the branch, translation didn't), to check (both changed) or extra, with the old and new English and the translation. It reads the audience's namespaces from AUDIENCE_NAMESPACES, so organizer text isn't listed unless asked for. Then the translation rules.
    2. pnpm test src/i18n src/email, then CI's checks.
    3. pnpm build, pnpm translation:screenshots -c …container config, then a reviewer subagent on a model other than the translator's (the Agent tool's model; a separate session through create_session with a model where that isn't available), with the prompt in references/review.md: meaning, glossary, tone, grammar and every plural branch, select branches, fit on the phone shots, punctuation, English left behind (minus what's English on purpose).
    4. Check each finding, fix, re-run, and list every finding and what was done in the PR.
  • The flag, TRANSLATION_SCREENSHOTS=1, set by the new pnpm translation:screenshots (after pnpm build, like pnpm help:screenshots). Off by default, so CI and ordinary runs are unchanged. Everything goes to the gitignored translation-review/:
    • tests/e2e/helpers/translation-shots.ts (translationShot) saves the page (or, for the sign-up sheet, the screen) once each state is checked, to translation-review/sv/screens/<project>/<state>.png.
    • With the flag, playwright.config.ts adds a chromium-phone project (Pixel 7 at 390×844, Chromium, since the cloud container has no WebKit) that runs only TRANSLATION_SPECS, so every state is also saved at phone width. The download-name LC_CTYPE launch option is shared by both Chromium projects.
    • src/email/templates/emails.test.tsx writes each sample email's worker-rendered HTML and plain text, English and Swedish, to translation-review/<lang>/emails/. Each .txt starts with a Subject: line, made by the subject function the email's send* uses; the samples gain an English reminder-changed to compare with the Swedish one (address round 1).
    • New Swedish e2e coverage, so the screenshots cover every participant screen: the sheet opened on a dated and an undated slot, with the typo hint; every refusal the sheet words (14 server answers stood in for with page.route, plus a proxy's error page and no connection), each held to participantErrorCopy's Swedish; success without an email; a returning participant's own spot (the os_commit cookie set from the seed, nothing written); and a draft, an archived and a closed signup (with and without your spot), the closed signup's edit page, and a spot cancelled before it closed. The seed gains a closed and an archived Swedish signup (makeSwedishClosedAndArchived), the draft's slug, and the cookie entries, and one writeSwedish helper replaces the two copies of that update.
    • The Swedish email samples now take their dates from formatSlotDate, so they print "lör 5 sep." as the app does (Write participant emails from the catalog, in the signup's language #920's tophat note), and their checks pin that.
  • CLAUDE.md: a Translations section (the guide, SHIPPED, and the rule: change English only in en.json and run the translate skill for each shipped language in the same PR; rewrite en.d.json.ts), the new command, and in Test layout E2E_UNSHIPPED_LOCALES=sv for a reused pnpm dev (Add a partial Swedish catalog and a Swedish test signup #914's review) and what the flag writes.
  • CONTRIBUTING.md: the same rule, linking the guide.

Where #637 is out of date

  • "A second, independent model" needs a way to pick one: the skill uses the Agent tool's model setting, falling back to a separate cloud session. No model is named in the repo.
  • "Stale translations are caught" is the second part. Until then the guide says nothing catches a stale translation, and the skill's script finds the ones a branch makes from the git diff of en.json.
  • Starting terms: the catalog settled on pass for a slot, never tid; the glossary records what the catalog uses and leaves pass as an open question.
  • "Every participant screen": the signup's own not-found page can't be Swedish before Swedish ships (it's always the site's language, Take the edit, cancel and unsubscribe pages' text from the catalog #916), and a few rarer states aren't seeded (a cancelled spot whose slot later filled or closed, removed or moved, more than one slot, cancel errors, copying). The guide and the reviewer prompt say to read those in the catalog.
  • "For each shipped language": no language but English has shipped, so the rule binds nothing yet. The guide and skill also ask for Swedish while it has a catalog, as the stack has been doing.
  • The cloud container has no browser for Playwright's pinned version, so the guide and skill give the run-opensignup container config for the screenshots.

Not in this PR: the stale-translation record and check (#637's second part).

Tests

  • pnpm lint && pnpm format:check && pnpm typecheck && pnpm knip && pnpm test: pass (212 files, 2996 passed, 1 expected fail).
  • e2e on the production build (Chromium through .claude/skills/run-opensignup/playwright.container.config.ts, since Playwright's own Chromium isn't installed here):
    • pnpm translation:screenshots: 42 passed (21 tests × desktop and phone). It wrote 110 files: 47 screenshots per width under translation-review/sv/screens/{chromium,chromium-phone}/ (page-open, page-signed-up, page-draft, page-closed, page-closed-yours, page-archived; sheet-dated, sheet-undated, sheet-did-you-mean, sheet-saved-emailed, sheet-saved-not-emailed, 17 sheet-error-*; edit-page, edit-page-closed, edit-cancel-question, edit-saved, 4 edit-error-*, cancelled-page, cancelled-page-signup-closed, edit-link-not-found; 8 unsubscribe-*), and the HTML and text of the 4 English and 4 Swedish sample emails under translation-review/{en,sv}/emails/. I looked at several: each shows its state, and they already show two of the glossary's open questions (the closed signup's bar reads "Kaffe · fre 4 dec..", and the unsubscribe buttons wrap at 390 px).
    • Without the flag: swedish-signup, a11y, precompiled-messages, slot-row-layout, build-tab-language, public-commit and organizer (the specs that read the seed this changes), chromium: 90 passed, and no translation-review/ was created. The email test without the flag wrote nothing either.
  • to-translate.mjs on this branch: 0 to do for Swedish participant text, 10 missing organizer messages with --audience organizer (English by design). With en.json edited locally (a changed message, a changed message whose Swedish also changed, a new one) it listed them as stale, to check and missing; a missing catalog and a missing argument stop with a message.
  • Not exercised: the reviewer subagent itself. The build session that wrote this was a subagent without the Agent tool, so the first real run of step 3 is Signups can't be in Swedish yet #639's.
  • After address round 1 (5f4e0bb): the checks above pass (212 files, 3010 passed, 1 expected fail), and pnpm translation:screenshots on a production build passes (11 email tests, 42 e2e tests) and writes 112 files: the same 47 screenshots per width, and 5 English and 4 Swedish emails, each .txt starting with its Subject: line.

No help article describes anything this changes. No screen, email or response a participant or organizer sees changed: the email samples only feed pnpm email:dev and the tests.

🤖 Generated with Claude Code

https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt

claude and others added 30 commits November 13, 2026 22:31
Part of #620: the core. next-intl and use-intl 4.14.9, pinned together
(icu-minify too, through an override), with next.config.mjs wrapped in
next-intl's plugin. src/messages/en.json is the English catalog, and
next-intl's AppConfig is typed from it, through the declaration the
plugin writes, so a missing key or a wrong argument fails typecheck.

src/i18n holds the pure locale config (CATALOG_LOCALES, SHIPPED), a
synchronous translator on use-intl/core with English filled in under
any other language, the server wrapper that logs what goes wrong, the
request config the plugin needs, and an English translator for tests
that throws.

The site footer's labels are the first text in the catalog, so the
translator is proven in a server component, on static and dynamic
pages. A new check runs it under the worker's toolchain. No page's
first-load JavaScript changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
A local ESLint plugin in eslint.config.mjs, with one rule so far:
opensignup/no-catalogs-in-client. In a file that opens with a 'use client'
directive, it reports any import of a catalog in src/messages, or of the
translators that load every catalog (src/i18n/translator.ts, server.ts and
testing/translator.ts), since either would put that text in the browser's
JavaScript. It reads the directive rather than matching paths, follows
@/ and relative paths, re-exports, import(), require() and import paths
built from a template, and lets type-only imports through, since those are
compiled away. The message says why and what to do instead.

The tests lint fixtures through the repo's own config, so they also prove
the rule is on for the app's files.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
A unit test over src/messages/ checks every catalog against en.json:
completeness per namespace, enforced for each language in SHIPPED for the
namespaces its audience reads; every message compiles with icu-minify;
placeholders, tags and select branches match English, and each placeholder
takes the value English is passed; no key English lacks; and no English
message the app doesn't use.

Which keys the app uses comes from the type checker: a call whose signature
is use-intl's Translator, its namespace from the keys it accepts, its key
from the type of its argument, so helpers, props, aliases and typed tables
are all seen, and a key or namespace it can't read fails the check.

The audience namespaces move from a comment to AUDIENCE_NAMESPACES in
src/i18n/config.ts. src/types/next-intl.d.ts imports next-intl, because an
augmentation alone doesn't load its module: without it, code with no test
importing next-intl typed every message key as a plain string.

icu-minify is a devDependency at exactly 4.14.9, the version next-intl and
use-intl resolve, and the pnpm override now points at it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
Two rules, on only for the files and folders listed in TRANSLATED in
eslint.config.mjs, which so far is the site footer:

- react/jsx-no-literals with noStrings and ignoreProps, for JSX text;
- opensignup/no-literal-text-props, a local rule for a string on
  aria-label, aria-description, title, placeholder, alt or label.
  noAttributeStrings would also flag every className and href.

TRANSLATED takes paths as they are on disk. filesAt escapes them for
the config's globs, since an unescaped src/app/s/[slug]/** matches
src/app/s/s/ and not the [slug] folder, and stops lint when a path
doesn't exist. The footer's license line is exempt with a comment.

Also, from #891's review: no-catalogs-in-client follows a + chain that
starts with a string, as it does a template, and denies every module in
src/i18n/ to client files except those in CLIENT_SAFE_I18N (config),
rather than listing the modules that load catalogs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
A translation that kept a select's argument but dropped the select
(`Status: {status}` for English's `{status, select, open {Open} ...}`)
passed, and would show participants the code's value. The check now
reports `{status} isn't a select here, but is in English`.

From the same review:
- The check's program types translators against the en.json it just
  loaded, written over src/messages/en.d.json.ts, so a stale declaration
  no longer gives misleading lines. findUsedKeys now builds the program
  itself, and the fallback for a stale declaration is gone, with its edge
  case that could pick the wrong section. messages-declaration.test.ts
  still fails on a stale file.
- Code in any `testing` folder and in src/mcp/evals doesn't count as a use.
- `t?.('key')` is seen.
- A test for the dot-in-key check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
Turn on next-intl's experimental message precompiling, so the first
client component with translated text ships a small formatter instead of
use-intl's ICU parser: measured here at 3,470 bytes gzipped against
12,353 without it.

Under precompile the plugin's loader compiles every catalog the Next
build imports, the server's too, and a message with an argument, plural
or tag becomes an array. withEnglishUnder treated every object as a
section and went into those arrays, so each such message would have
rendered as its key path in the web process while vitest and the worker,
which read the raw JSON, stayed green. A message is now a string or an
array, and only a section is merged into.

The footer's "{INSTANCE_NAME} · AGPL-3.0" line becomes a message with an
argument, the first the app has, and a production-build e2e checks it on
a prerendered page, a page rendered per request and the public signup
page. A unit test runs next-intl's own loader over every catalog and
checks each message formats the same precompiled as from the raw JSON.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
…ext-lint

Brings in #892's review fixes (a7a10ed) so this PR stays on top of #892's final state.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
formatSlotDate and formatSlotTime now take the reader's language as a
required `locale`, and so does everything that prints a slot's values:
renderFieldValue, slotDetails, summarizeSlotValues, formatGroupLabel,
buildMetaSegments, prettyHeader, and the two commitment services that name a
slot for the edit and cancelled pages. Every caller passes 'en' for now, so
nothing anyone sees changes.

A date is built from its parts as a UTC moment and formatted in UTC, so no
zone can move it to another day. English keeps today's output exactly,
including the hand-written 12-hour clock with its no-break space before
AM/PM; other languages get Intl's own ("lör 3 maj", "18:30" in Swedish).

formatSlotDate now formats only a stored YYYY-MM-DD. It used to fall back to
`new Date()` for any other string, in the host's zone; no caller relied on
that, as both checked isRealDate first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
filesAt escaped the characters a glob reads specially but not the
backslash it escapes them with, so a listed folder named `a\b` became
the glob `a\b/**`, which matches `ab/` and not `a\b/`. The backslash is
now escaped in the same pass as the rest.

filesAt takes an optional root so a test can list a real folder with a
backslash in its name, made in a temporary directory, and check the glob
with ESLint's own matcher.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
…mpile

Brings in #893's later commits (#892's final code, main, and the filesAt escaping fix) so this PR stays on top of #893.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
…-format

Keeps this PR on top of #894's current branch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
main now holds #893 (7a9fada), whose final code this branch already had. The only conflict was the footer line #893 exempted from lint and this PR turns into a message; this branch's version is kept.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
…-format

Keeps this PR on top of #894's current branch, which now has main (#893) merged in.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
Every formatter that named a language now takes the reader's as `locale`,
and every caller passes 'en' for now, so English reads exactly as before:

- format-duration: `formatDuration` and `waitInMinutes` write each amount
  with Intl (number, unit and plural), so "1 minute" and "2 timmar" both
  come out right. `locale` defaults to English, since some callers are
  sign-in and OAuth code that gets a language with its own text.
- fit-text: Magic Compose's cut-off warning writes its limit with
  Intl.NumberFormat.
- connected apps: the approval, last-use and expiry dates go through
  `formatGrantDate`, which keeps English in the day-first order the page
  has always shown.
- Magic Compose: `formatOneDay`, `appendAnswers` and `timeLength` take a
  locale, and `MagicComposeRoot` passes one down to Compose (the character
  count), Questions, Drafting and DraftingFrom. English times keep "9am";
  other languages get Intl's short time, as slot times do.

The participant rate-limit message now writes its plural in its own
sentence from `waitMinutes`, as Magic Compose's hourly-limit message does,
so the plural moves into the catalog with the sentence and Intl's unit
code stays out of the participant pages, which had 5 bytes of budget left.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
…er-formatters

Keeps this PR on top of #895's current branch, which now has main (#893, #894) merged in.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
…le change

Part of #625. A signup can now hold a language in settings.locale, and an
operator can set DEFAULT_LOCALE. Nothing reads either yet, so pages, emails
and the AI connector's tools are unchanged.

- settings.locale is a lenient string, so a stored language that has left
  the list still parses. createSignup and updateSignup refuse a language the
  caller sends unless it has shipped to participants; updateSignup checks
  only a sent one, as it does for groupByFieldRefs, because it merges the
  stored settings under the patch before parsing.
- resolveLocale and defaultFor in src/i18n/config.ts, pure, with isShipped.
- DEFAULT_LOCALE in src/lib/env.ts, an optional enum of the catalog
  languages.
- locale joins UNREAD_SETTINGS, so update_signup refuses it and get_signup
  hides it until something reads it.
- .env.example, fly.example.toml, the README and the CHANGELOG say what it
  does, that it changes nothing until a second language ships, and where a
  runtime variable goes on each platform.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
…anguage ships

The Settings tab gets a "Signup language" form, a plain form like "Ask for
an email address" with no script of its own. It renders only once a second
language has shipped to participants, so nothing shows yet. Each language is
named in itself (English, Svenska), through Intl.DisplayNames. Saving sends
only `locale` through updateSignup, which refuses a language that hasn't
shipped; a refusal shows the tab's usual error.

A signup with no language of its own shows the instance's, so
instanceDefaultLocale() comes in here with its first caller.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
TIME_ZONE moves from src/i18n/config.ts to its own src/i18n/time-zone.ts.
Browser code reaches it through src/lib/slot-label.ts (the Build tab's
time picker and Magic Compose), which made config.ts part of the code
those two share. Webpack counts a module's unused code when it decides
whether shared code gets a chunk of its own, so the language rules this
branch added to config.ts tipped it into making one. That chunk's entry
in the webpack runtime added 29 to 47 bytes to every page and pushed
/s/[slug]/c/[id] over its 110 kB budget. With config.ts out of the
browser's graph, every page's JavaScript is byte-for-byte the size it
was on the base branch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
…sent

A settings.locale longer than 35 characters (or not a string), written
straight into the database, failed the whole settings parse: the signup
asked for an email the organizer had turned off, and every settings save
failed on a field nobody sent. The schema now reads such a value as no
language (.catch(undefined)), so a stored value can never break the row,
and an unrelated save drops it.

createSignup and updateSignup check the raw value the caller sends
instead of the parsed one, so a too-long, non-string or unknown language
is still refused with invalid_input on settings.locale (now with the
service's own message, where a too-long one used to get zod's).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
The README, .env.example and CHANGELOG said a language "takes effect
only once OpenSignup ships it", with a Swedish school as the example,
which reads as "set sv now and it will start working later". In fact any
value but en stops the app: the worker exits at startup and every page
that needs the database fails with an "Invalid environment" error. They
now say that, tell operators to leave it unset for now, drop the
example, and put what an unset value means in the future tense, since
nothing reads an organizer's browser language yet. fly.example.toml
says the same in one line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
In a file of its own, the form was a second server module importing
AsyncSubmitButton, and webpack then added a few bytes to that button's
module on every page that loads it. Inline in page.tsx, every page's
first-load JavaScript is byte-identical to the base. The test now renders
the Settings tab itself, so it also checks the page shows the form, and
that "Saved" appears only by the form that saved.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
#896 merged, so main now holds this branch's base. The one conflict,
src/lib/slot-label.ts, is between #895 and #896 as squashed on main and
the same commits in this branch's history; main's copy equals #896's
head, so the branch's copy (with TIME_ZONE from its new module) stands.
The merged tree is identical to the branch's before the merge.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
…ettings-control

Takes #897's address round: TIME_ZONE out of config.ts, the lenient read of
a stored locale, and the docs on DEFAULT_LOCALE.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
chooseOrganizerLocale takes the organizer's saved language, the instance's
DEFAULT_LOCALE and the browser's Accept-Language header (null where there is
no browser, as for MCP) and returns the first that has shipped to the
audience asked about, else English, with the step that chose it. Only the
browser's top-ranked range counts, so "sv,en;q=0.8" gives English until
Swedish ships rather than settling for the second choice.

It lives in its own file, away from server.ts (which the worker imports) and
from next/headers. The column, the session field and the request wrapper
come later.

Part of #626.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
getSignupRowBySlug reads the live signup at a slug in one statement,
skipping deleted rows and keeping drafts and archived ones, so the page can
still say which. getPublicSignup takes that row, or a slug as before for the
public API, and loadPublicSignup now gets its row from the new cached
loadSignupRowBySlug. A layout that reads the row too (a later part of #628)
then adds no statement to GET /s/[slug].

A unit test stands a per-request cache in for React's and checks the page's
read goes through loadSignupRowBySlug and hands getPublicSignup the row, not
the slug. The query-budget test says why it counts the page alone. Both page
budgets stay at 5 and 6.

Part of #628.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
@richshaw richshaw added the pipeline:working A session is working on it right now label Nov 16, 2026 — with Claude
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
Base automatically changed from claude/issue-635-prompt-language to main November 16, 2026 02:42

Copy link
Copy Markdown
Owner Author

catch-up after #927: merges only, own diff unchanged, markers stand. The description's "checked line by line against the code on #928's branch" now says "on this branch" (round 3 review's optional); nothing else in the body changed.

https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt


Generated by Claude Code

@richshaw
richshaw merged commit 7e03236 into main Nov 16, 2026
5 checks passed
@richshaw
richshaw deleted the claude/issue-637-translating-guide branch November 16, 2026 02:48
@richshaw richshaw removed pipeline:merge pipeline:working A session is working on it right now labels Nov 16, 2026 — with Claude
richshaw pushed a commit that referenced this pull request Nov 16, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
richshaw pushed a commit that referenced this pull request Nov 16, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
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.

3 participants