Skip to content

fix(localeData): retain the selected locale in name lists - #3229

Open
xu91102 wants to merge 1 commit into
iamkun:devfrom
xu91102:fix/locale-data-retains-selected-locale
Open

xu91102 wants to merge 1 commit into
iamkun:devfrom
xu91102:fix/locale-data-retains-selected-locale

Conversation

@xu91102

@xu91102 xu91102 commented Sep 26, 2026

Copy link
Copy Markdown

Saved global localeData() objects currently mix their original week-start/formats with the current global locale's month and weekday names. Read all five name lists from the already-captured locale object, using the existing fallback helper.

The regression switches French to English, checks all five saved lists, and confirms standalone dayjs.months() still follows English.

Validation: baseline passed; regression failed before the fix; 21 localeData/localizedFormat tests pass after it. npm run lint, npm run babel (184 files), and git diff --check pass. Full timezone/browser matrices were not run.

Self-review: limited to the localeData implementation and its regression test; no unrelated changes. Authored with OpenAI Codex assistance.

Fixes #3228.

This branch has not been deployed

No deployments
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.

Saved localeData objects mix languages after changing the global locale

1 participant