Skip to content

fix(Calendar): localize compact weekday headers from CLDR - #5190

Merged
nynexman4464 merged 6 commits into
mainfrom
nynexman4464/fix/calendar-cldr-weekdays
Aug 19, 2026
Merged

nynexman4464 merged 6 commits into
mainfrom
nynexman4464/fix/calendar-cldr-weekdays

Conversation

@nynexman4464

@nynexman4464 nynexman4464 commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Replace Calendar's hardcoded English weekday headers with compact, localized CLDR stand-alone.short names for the locales shipped by core.

The generated runtime table preserves English Su / Mo / Tu / …, provides each supported locale's corresponding compact CLDR form, and falls back from an exact locale to its base language and then English. Raw CLDR data remains a development-only input and is not included in the runtime package.

Addresses the Calendar weekday portion of #5074.

Verification

  • proved the provider-locale regression test fails against the previous hardcoded behavior and passes with the generated data
  • proved the generation drift check fails for stale output and passes after regeneration
  • focused Calendar, resolver, and generator suites: 83 tests passed
  • pnpm check:cldr-weekdays, pnpm lint:strict, pnpm test, and pnpm build passed
  • built Calendar output contains no raw CLDR imports or source references

@vercel

vercel Bot commented Aug 18, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
astryx Ready Ready Preview Aug 18, 2026 11:04pm

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Aug 18, 2026
@github-actions

github-actions Bot commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

📚 Storybook Preview

View Storybook for this PR
GitHub Pages may take up to a minute to hydrate after deploy.

🧪 Sandbox Preview

View Sandbox for this PR
GitHub Pages may take up to a minute to hydrate after deploy.

Modified Components

Calendar (@astryxdesign/core) · View in Storybook
Metric Before After Delta
Bundle Size (ESM) N/A N/A N/A
Lines of Code N/A 1404 -
Complexity N/A Very High (136) -

Bundle Size Summary

Package Size (ESM) Size (CJS) Gzipped
@astryxdesign/core N/A 4.8KB 1.2KB

Accessibility Audit

Status: No accessibility violations detected.


Generated by PR Enrichment workflow | Storybook | Sandbox | View full report

github-actions Bot added a commit that referenced this pull request Aug 18, 2026
github-actions Bot added a commit that referenced this pull request Aug 18, 2026
github-actions Bot added a commit that referenced this pull request Aug 18, 2026
@nynexman4464
nynexman4464 force-pushed the nynexman4464/fix/calendar-cldr-weekdays branch from 44163d5 to a5d07a5 Compare August 18, 2026 21:00
@nynexman4464
nynexman4464 changed the base branch from main to nynexman4464/stack/date-locale-migration August 18, 2026 21:00
github-actions Bot added a commit that referenced this pull request Aug 18, 2026
github-actions Bot added a commit that referenced this pull request Aug 18, 2026
@nynexman4464
nynexman4464 marked this pull request as ready for review August 18, 2026 21:41
@nynexman4464
nynexman4464 force-pushed the nynexman4464/fix/calendar-cldr-weekdays branch from 175120d to 9096233 Compare August 18, 2026 23:00
@nynexman4464
nynexman4464 changed the base branch from nynexman4464/stack/date-locale-migration to main August 18, 2026 23:00
@nynexman4464
nynexman4464 merged commit 46b0532 into main Aug 19, 2026
19 checks passed
@github-actions
github-actions Bot deleted the nynexman4464/fix/calendar-cldr-weekdays branch August 20, 2026 06:12

This branch was successfully deployed

1 active deployment
Preview — 9096233a Deployed Aug 18, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant