Join dates read "가입일 7월 2020" in Korean: format month-year dates per locale instead of concatenating
Problem and intended result
The profile join date is built by concatenation, so every non-English locale gets English word order. In Korean the Blog profile shows "가입일 7월 2020" (seen live on peerverity, guest4test profile, after #1207 (closed) added ko). A Korean reader expects the year first: "2020년 7월", i.e. "가입일: 2020년 7월" or "2020년 7월 가입".
Cause: packages/ui/lib/parse-date.ts dateToShow formats dayjs(...).format('MMMM YYYY') in English and then .replace()s the English month name with t('global.months.*'). Callers prepend a separate label:
apps/blog/features/layouts/user-profile/profile-layout.tsx—{t('user_profile.joined')} {dateToShow(...)}(data-testid="user-joined")apps/blog/features/post-rendering/popover-card-data.tsx—{t('post_content.header.hover_author.joined')} {dateToShow(...)}(the ko value there is "가입됨", a status word, giving "가입됨 7월 2020")apps/wallet/components/profile-layout.tsx—{t('profile.joined')} {dateToShow(...)}
The same order problem affects other locales whose month-year order or grammar differs from English (e.g. Polish/Russian month case, Japanese/Chinese if added), so fix the mechanism, not just Korean.
Intended: the month-year date is formatted per the active UI language (e.g. Intl.DateTimeFormat(locale, { year: 'numeric', month: 'long' }) → ko "2020년 7월", en "July 2020", pl "lipiec 2020"), and the "Joined …" phrase is one translation string with a placeholder (e.g. "joined_date": "Joined {{date}}", ko "{{date}} 가입") so each locale controls word order.
Required behavior
dateToShow(or a replacement) takes the active locale and formats month + year with the locale's own order and month form; no English-then-replace.- The three join-date sites render one interpolated translation string per app, not label + space + date.
- Every Blog and Wallet locale gets the new key(s) with correct word order; the translation validators (
lint:translations, cross-locale + placeholder checks) pass. Remove keys that become unused, or keep them only if still referenced. - Other
dateToShowcallers, if any, keep working (check withgit grep dateToShow).
Acceptance criteria
- Korean Blog profile, hover card and Wallet profile show "2020년 7월" in a natural Korean phrase (no "7월 2020", no "가입됨 …").
- English still reads "Joined July 2020"; Polish, Spanish, French, Italian, Russian read naturally in their own order.
- Fixture tests asserting the joined text (
user-joined, hover card) are updated and pass; add one fixture or unit assertion for ko and one for en.
Verification
aidev test run --slot full.
Integration points
packages/ui/lib/parse-date.ts— locale-aware month-year formattingapps/blog/features/layouts/user-profile/profile-layout.tsx,apps/blog/features/post-rendering/popover-card-data.tsx,apps/wallet/components/profile-layout.tsx— render the interpolated join phraseapps/blog/locales/*/common_blog.json,apps/wallet/locales/*/common_wallet.json— new join-date key per locale
Scope boundary
Join-date (month-year) display only. Relative times (dateToRelative) and full timestamps are out of scope.