Repository navigation
Move a signup's header, tabs and status labels into the catalog - #957
Merged
Merged
Conversation
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
…text Part of #626. Adds organizers.locale, a nullable text column (migration 0015, add-only), and reads it in the query loadOrganizerSessionById already runs: one more selected column, no new statement. The raw saved value, or null, travels on OrganizerSession, on the bearer seam's resolution and into the MCP ToolContext, since tool handlers may not query the database. It stays off Actor, so a cookie and a token for the same organizer still give the same actor. Nothing sets the column or follows it yet. signups.claim_token_hash is out of the schema but still in the database until a later release (#820), so drizzle-kit wanted to drop it too. The migration was generated with that field put back in the schema for the run, so its diff is only the new column and the snapshot still matches the database. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
…nd ships updateOrganizerLocale saves the acting organizer's own language, refusing anything that hasn't shipped to participants, and anyone who isn't an organizer. Account Settings gets "Language for new signups", a plain form that renders only once SHIPPED.participant has two languages, showing the saved language or the one getOrganizerLocale would pick. The privacy page says the account holds that choice. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
A new signup made through POST /api/signups, the New signup form or Magic Compose now takes a language: the one an API caller sent, else the organizer's (saved, the instance's DEFAULT_LOCALE, the browser's top language, English). The route decides and passes it into createSignup; persistDraft takes it as an option. While only English has shipped to participants nothing is stored unless the caller sent a language, so no signup is pinned to one nobody chose. signup.created records locale and localeSource for a signup created with a language, documented in docs/telemetry.md and on the privacy page. Part of #627. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
The AI assistant's create_signup now gives a new signup a language the same way the browser does (#905), finishing #627: - An optional `locale` on the tool's input (added with .extend(), not on FullDraftSchema, which is also Magic Compose's output schema). It is stripped from the draft and passed through persistDraft's `locale` option with source `api`. - Without one, the signup takes newSignupLocale with the organizer's saved language (ctx.locale) and no browser: an assistant's Accept-Language is its vendor's. While only English has shipped to participants that stores nothing, as before. - A language that hasn't shipped is refused with invalid_input on `locale`, with the REST API's message and suggestion, before any quota is spent or anything created. createSignup's check is exported as checkSignupLocale, with the field name as a parameter, so both say the same thing. - signup.created records locale and localeSource as for the browser, next to viaClientId. The tool description says what locale does and which values it takes. docs/connect-ai-assistant.md, docs/telemetry.md and the CHANGELOG say the same. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
budgets.json conflicted on the Build tab line (this branch 151, #967's 151.3 after #962's Next.js 15.5.29 raise). Took 151.3 here; re-measured below. 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
Measured after pnpm build on this branch, with Next.js 15.5.29 from main: - /s/[slug]/c/[id]: 113.608 kB, over 113.6, so 113.7. - /app/signups/[id]/build: 151.106 kB. This branch had lowered it to 151 before main's Next.js raise; the catch-up took main's 151.3, and 151.2 is the measured figure. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
budgets.json conflicted on a budget line #968's branch had re-measured for Next.js 15.5.29. Took #968's number here; re-measured below. 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
Measured after pnpm build on this branch, with Next.js 15.5.29 from main: 151.347 kB. This branch had raised it from 151 to 151.3 for its own change; with Next.js on top it needs 151.4. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
budgets.json conflicted on a budget line #970's branch had re-measured for Next.js 15.5.29. Took #970's number here; re-measured below. 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
docs/translating.md conflicted: #931 (through #977) turned the glossary's open questions into a "Settled" list, and this branch had added a question about the Build tab's drag refusals to the old list. Kept #931's settled list and moved this branch's question, unchanged, under "Open questions". 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
docs/translating.md conflicted: #931 (through #981) turned the glossary's open questions into a "Settled" list with an "Open questions" section after it, and this branch had added two questions from #982's review to the old list. Kept #931's settled list and added this branch's two questions under "Open questions", beside #981's. 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
Owner
Author
|
Approved by the owner at The owner approved merging the localization stack (#897 up to #998) in the orchestrating session on 16 November 2026: "Stop before launch: merge everything up to and including the simplification". https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt Generated by Claude Code |
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
Owner
Author
|
catch-up after #956: merges only, own diff unchanged, markers stand (light review and tophat on 6f6609c) https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt Generated by Claude Code |
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #941.
Merge after #956.
The stack
Phase 2 of the localization stack (#619), track B. Based on #956 (
claude/issue-940-account-text); review against that branch.The problem
The part every signup tab shares wrote its text into its components in English: the header, the tabs, the status pill, the more-actions menu, Publish and share and its check, Close signup and its question, the closed box, Reopen signup, and the refusals of all three. So it couldn't follow the organizer's language. The status was printed as the stored word, and the spot counts and Close signup's question were glued from pieces.
The fix
50 new messages, 46 under
organizer.signupand 4 underorganizer.status, English byte for byte as it read. The layout takes the language fromgetOrganizerAppLocale(session)(#954), once.signupHeaderText(t)(components/signup/header-text.ts) builds them on the server. The layout passes them toHeaderAnnouncer,SignupHeader,ClosedNoticeandTabsNav. Each component takes the part it shows, and the ones that hold others pass theirs on. NoClientMessages, so the pages send no messages and no next-intl runtime.label. A signup's comes fromsignupStatusLabel, a literal key per status (organizer.status.draftand so on), so the used-keys check sees each one.status-pillleaves the page's JavaScript.spotsTakenLine) and Close signup's question (closeSignupQuestion) inSignupHeader;publishCheckCopy), the refusals (statusRefusal) and the asked-again question, in the server actions, which now read the organizer's language from the session they already have.Translator<…>, a type-only import), sospot-counts.tsstays safe for the static help page that imports it.=1, notone: it's about exactly one slot.{n, number, ::group-off}, so English still reads "1234", as the catalog's other counts do.draft-copy.tsis gone. Its words are now the catalog's. A test checks the header's draft line still says what Your signups' row and the own-draft title say.KEEPS_THEIR_SPOTfor the help article on closing, andspotCountfor the share message (The share panel is English-only, and so is the message it offers to send #942).TRANSLATEDgainssrc/components/signup(whole, replacing theSignupLoadError.tsxentry), the signup layout andstatus-pill.tsx.ShareButton.tsxandShareScope.tsxgo inNOT_YET_TRANSLATEDuntil The share panel is English-only, and so is the message it offers to send #942.no-hard-coded-text.test.tslists the files and checks both.docs/translating.md's namespace table and the CHANGELOG's The organizer app ignores the organizer's language #937 line name the new screens.Left as they are:
statusRefusalis stillSAVE_ERROR_MESSAGE.forbidden, which Organizer screens show the server's English when a save is refused #939 moves toorganizer.errors. Organizer screens show the server's English when a save is refused #939 also addsstatus_changedandno_slotsreasons for the two conflictsstatusRefusaltells apart byerror.field. I keptfieldand moved only the plain sentences. Switching to reasons is Organizer screens show the server's English when a save is refused #939's call. Whichever lands second has a small merge instatus-refusal.ts.label, unchanged, for Responses and the CSV's column names are English-only #945.Checked against the code:
[id]/layout.tsxdoesn't re-render between tabs. Nothing it shows depends on the tab: the tabs find the current one themselves (usePathname). The language changes only with a full page load (Organizer pages say lang="en" on <html> whatever the organizer's language #938).UInameopen, which is the pill's English, unchanged here (organizer.status.open).Client JavaScript: every signup tab is 94 B smaller (gzip), base and head measured in this session:
/app/signups/[id]and/edit129.7 kB of 130,/build147.7 of 149,/responses131.1 of 132,/settings130.7 of 131. No budget moves.Tests
header-text.test.ts: every client word in English, as literal strings, and each from the catalog in each other language;status-label.test.ts: each status in English (the stored word) and by its own key in each other language.spot-counts,publish-checkandstatus-refusalkeep their English cases, which now pass an English translator. Each adds a case per other catalog language.spot-countsadds a 1234 count and a check that both sentences end withKEEPS_THEIR_SPOT.SignupHeader.test.tsx: the pill on both headers in English. In each other language, the draft line, Preview, pill, spots line, Publish and share, More actions and Reopen signup all come from the catalog.TabsNav.test.tsx: the strip's and tabs' names, in English and another language.textprops. No expected text changed in any existing unit, e2e or help walkthrough spec. The one other edit:s/[slug]/page.test.tsxspells out "Only you can see this draft" where it importedDRAFT_ONLY_YOU.tests/e2e/organizer-language.spec.ts, for an organizer with nothing stored and one who stores each other catalog language:id.Run in this session on
175e2a6, all passing:pnpm lint && pnpm format:check && pnpm typecheck && pnpm knip && pnpm test: 3102 passed, 1 expected fail.pnpm build && pnpm budgets: every page within budget, no number changed.organizer-language,organizer,responses,tabs-focus-ring,async-submit-button,public-link-chip,a11y,precompiled-messages,draft-linkand every help walkthrough (tests/e2e/help), 84 passed.organizer-languagealso passed at a phone's size, in Chromium.pnpm test:dbonsignups/[id]/actions.db.test.tsonly: 31 passed. No service changed. The actions it tests did, as did its expected check copy.Overlaps
status-refusal.tsand possiblyactions.ts, as above.ShareButton.tsxandShareScope.tsxleaveNOT_YET_TRANSLATED, andspotCountmoves.src/app/app/**undersrc/app/(organizer)/. The signup layout's entries inTRANSLATEDand inno-hard-coded-text.test.tsmust move with it.filesAtfails lint loudly if they don't.🤖 Generated with Claude Code
https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt