Skip to content

Unify date formatting in UN house style across all six locales#3

Closed
davidpomerenke wants to merge 2 commits into
mainfrom
worktree-date-formatter-un-style
Closed

Unify date formatting in UN house style across all six locales#3
davidpomerenke wants to merge 2 commits into
mainfrom
worktree-date-formatter-un-style

Conversation

@davidpomerenke

Copy link
Copy Markdown
Collaborator

Summary

  • formatMeetingDate now produces day-month-year per UN editorial style: enen-GB ("15 June 2025"), Arabic uses dual Levantine/Western month names (حزيران/يونيه), Russian strips Intl's trailing г. suffix; month is always long-form.
  • Adds weekday: "long" | "short" | "none" and relative: "alone" | "prefix" | "off" options so callers can render "Today, 15 June" on schedule headings, drop the weekday on meeting headers and clipboard exports, and disable relative entirely where it's not wanted.
  • Migrates statement-feed.tsx and subscriptions-manager.tsx off bespoke browser-locale Intl calls onto the shared useMeetingFormat hook.

Test plan

  • pnpm typecheck clean
  • Smoke-tested formatter output across all six locales (en/fr/es/ar/zh/ru) — matches UN house style
  • Home page (/en, /es) — verified "Today, 15 June" / "Hoy, 15 de junio" prefix, full month, weekday only on absolute-only rows
  • Meeting page (/en/sc/10171) — verified relative prefix with weekday dropped
  • Spot-check Arabic and Russian renderings in browser
  • Verify clipboard export and downloads file naming still read correctly

🤖 Generated with Claude Code

formatMeetingDate now produces day-month-year per UN editorial style:
en→en-GB ("15 June 2025"), Arabic uses dual Levantine/Western month names
("حزيران/يونيه"), Russian strips Intl's trailing " г." suffix. Adds a
weekday option ("long" | "short" | "none") and a relative mode
("alone" | "prefix" | "off") so callers can render "Today, 15 June" on
schedule headings while dropping the weekday on meeting headers and
clipboard exports. Migrates statement-feed and subscriptions-manager off
their bespoke browser-locale formatters onto the shared hook.

Co-Authored-By: Claude Opus 4.7 <[email protected]>
@vercel

vercel Bot commented Jun 16, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
webtv-unfck-org Ready Ready Preview, Comment Jun 16, 2026 8:51pm

Request Review

UN English style consistently writes "Monday, 9 March" with a comma
after the weekday, but Intl en-GB omits it without a year and includes
it with a year — inject the comma after the weekday for English so
both cases match. UN Chinese style writes "6月16日 星期一" with a space;
CLDR runs them together. Hand-assemble zh like ar so date and weekday
are separated. Also pipe the locale-appropriate comma into
formatMeetingDateTime so the time tail reads as one phrase
("Today, 10:30" / "今天,10:30") instead of "Today 10:30".

Co-Authored-By: Claude Opus 4.7 <[email protected]>
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.

1 participant