Skip to content

English messages mix straight and curly apostrophes, sometimes on the same screen #1023

Done

Description

@richshaw

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.json writes 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 main already. 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 dev or pnpm build once, and commit the rewritten src/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 sv is marked again in src/i18n/translated-from/sv.json. Run the translate skill for sv, for both audiences (to-translate.mjs sv, then --audience organizer). The Swedish stays as it is; the skill's mark-translated.mjs records 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.json has 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/), and src/help/ui-names.test.ts holds each on-screen name to its message in en.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 translate sv again, 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.json uses one kind of apostrophe, and a test fails if the other kind comes back.
  • to-translate.mjs sv and to-translate.mjs sv --audience organizer report 0 stale, and the catalog check passes.
  • pnpm lint && pnpm format:check && pnpm typecheck && pnpm knip && pnpm test pass.

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

Activity

  1. added
    enhancement
    pipeline:ux
    pipeline:working
    and removed on Nov 16, 2026
  2. self-assigned this
    on Nov 24, 2026
  3. removed
    pipeline:working
    on Nov 24, 2026
  4. removed
    pipeline:ux
    on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions