Repository navigation
Done
Labels
enhancementNew feature or request
Description
Needs your OK: this changes punctuation in English text people read in the app and in emails: every apostrophe becomes the same kind. Swap pipeline:proposed for pipeline:ready to have it built.
What happens
src/messages/en.jsonwrites apostrophes two ways. 61 messages use a straight one (') and 36 a curly one (’), in participant text, organizer text and emails alike.- Some screens show both. Account Settings is where the tophat of Switch Swedish on for organizers and participants #1019 saw it: "aren't" (
organizer.settings.language.toSwitch), "OpenSignup's" (switchNote) and "they're" (switched) are straight, and "signup’s" (organizer.settings.language.help) is curly. The Build tab's refusals (organizer.build.refusal) and a closed signup's messages (participant.errors.closed) mix them too. - Nothing needs the mix. ICU treats a straight apostrophe specially only before
{,}or#(docs/translating.md, "Quotes and braces"), and none of the 36 curly ones sits there. - It's on
mainalready. Account Settings' language messages only show once a second language has shipped, so people see them from Switch Swedish on for organizers and participants #1019 on. - Swedish has no apostrophes, so its text won't change. But each English change makes the Swedish translation stale in its record.
Fix, in outline
- One kind of apostrophe in
en.json, the one "Choices this makes" picks. If a straight one lands right before a placeholder, write two (''), as the guide says. - Run
pnpm devorpnpm buildonce, and commit the rewrittensrc/messages/en.d.json.ts. - Mark Swedish again. Swedish has shipped (Switch Swedish on for organizers and participants #1019), so the catalog check fails every changed message as stale until
svis marked again insrc/i18n/translated-from/sv.json. Run thetranslateskill forsv, for both audiences (to-translate.mjs sv, then--audience organizer). The Swedish stays as it is; the skill'smark-translated.mjsrecords it as translated from the new English. Never hand-edit the record or find-and-replace in it. - A test that keeps it that way: a check beside the catalog tests that
en.jsonhas no apostrophe of the other kind.
Watch for
- Tests that type English out. Some unit tests and specs type a message with its apostrophe instead of reading it from the catalog. Change them to the chosen kind; don't loosen them. Many test names and comments use
’too, which doesn't matter. - Help pages type their own English (
src/help/articles/), andsrc/help/ui-names.test.tsholds each on-screen name to its message inen.json. A name with an apostrophe has to match. - Any snapshot or golden file that holds an English email or message with an apostrophe.
- Other open PRs that change
en.json. Whichever lands second has to translatesvagain, as Switch Swedish on for organizers and participants #1019's checklist says.
Choices this makes
- Straight apostrophes. Default:
'everywhere. 61 of the 97 already use it, it's what people type, and the guide's ICU rule is written for it ("You're" and "don't" are fine). Curly (’) looks better in print and needs no''before a placeholder, but it means changing 61 messages, and every new message has to be typed with it. - All of
en.json, not only account Settings. Fixing the four Settings messages would leave the mix on other screens. Default: the whole catalog. Help pages, legal pages and the README stay as they are.
Order
After #1019, because this changes en.json, and #1019 asks that whichever of them lands second translates sv. Letting the launch land first keeps that off it.
Done when
en.jsonuses one kind of apostrophe, and a test fails if the other kind comes back.to-translate.mjs svandto-translate.mjs sv --audience organizerreport 0 stale, and the catalog check passes.pnpm lint && pnpm format:check && pnpm typecheck && pnpm knip && pnpm testpass.
From the tophat of #1019 (its third note), which #1019's review asked to file. Counted in src/messages/en.json on main at ccc5f65. https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
Metadata
Metadata
Assignees
Labels
enhancementNew feature or request
Activity