Repository navigation
Closed
Labels
enhancementNew feature or request
Description
Needs your OK: this moves the share panel's text into the catalog in the organizer's language, and writes the message it offers to send in the signup's language, since participants read it. English stays word for word the same. Swap pipeline:proposed for pipeline:ready to have it built.
What happens
- The panel: about 40 English strings in
src/components/share/*(SharePanel,ShareQrCode,ShareUnavailable,share-heading.tsx),src/components/PublicLinkChip.tsxandsrc/components/signup/ShareButton.tsx.SharePanel,ShareQrCode,PublicLinkChipandShareButtonare client components. - The message it offers to send comes from
shareMessageinsrc/lib/share-message.ts, built on the server insignups/[id]/layout.tsxand passed down as a string. It's English: "Sign up here, no account needed: {url}", the spots line ("21 spots open", "18 spots left") and the dates. Participants read it, but The calendar file and share text are English, and the calendar file's name drops å, ä and ö #633 covered only the participant's own share text in the sign-up dialog, not this one.
Fix, in outline
- The rules from The organizer app ignores the organizer's language #937 for the panel. One ICU message per sentence under
organizer.share, English byte for byte as today, and the files inTRANSLATEDineslint.config.mjs. - The panel in the organizer's language (The organizer app ignores the organizer's language #937's helper). Its client components take their strings as props from the server header, or read through
ClientMessageswith onlyorganizer.share, whichever the header issue (The signup header, tabs and status labels are English-only #941) chose. - The message in the signup's language, from
signupLocaleas the signup's own pages read it. Its words go underparticipant.share, so the completeness check counts them when a language ships to participants. Its dates useformatSlotDateandformatSlotTimewith the same language. - Spot counts come from
lib/spot-counts.ts, which The organizer app ignores the organizer's language #937 makes take a translator: here it gets the signup's.
Watch for
- Budgets. If the panel mounts
ClientMessagesand The signup header, tabs and status labels are English-only #941 didn't, the signup tabs' budgets move: up to 3.5 KB once per page, measured, set to the real figure, and the PR goes to the owner. - The organizer can still edit the message before sending. Only its starting text changes.
- Tests in
src/lib/share-message.test.tsandSharePanel.test.tsxpin today's English. Keep them, and add one for a signup in a test language.
Order
Built on the localization stack (top: #936); see #619. After #941, which settles how the header's client components get their text.
Gate
Auto, as long as it raises no budget: nothing people see changes while only English ships.
Done when
- With an organizer's stored test language (The organizer app ignores the organizer's language #937), the panel renders that language. A signup stored in a test language gets a message in that language, whatever the organizer's.
- English is unchanged: the existing unit, e2e and help walkthrough specs pass without edits to their expected text.
- The files are in
TRANSLATED. pnpm lint && pnpm format:check && pnpm typecheck && pnpm knip && pnpm testandpnpm build && pnpm budgetspass.
Phase 2 of #619, from the owner's decisions of 14 and 15 November 2026 and a survey of the organizer code. Checked against the localization stack at 750e570 (top: #936), which isn't on main yet.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or request
Activity