Skip to content

fix(angular/datepicker): allow weekday abbreviations with a period#2798

Merged
mhaertwig merged 1 commit into
mainfrom
feature/datepicker
May 13, 2026
Merged

fix(angular/datepicker): allow weekday abbreviations with a period#2798
mhaertwig merged 1 commit into
mainfrom
feature/datepicker

Conversation

@mhaertwig
Copy link
Copy Markdown
Collaborator

According to https://cldr.unicode.org/, German weekday abbreviations use a period, whereas Swiss weekday abbreviations do not. This caused the datepicker to stop working when de was selected as LOCALE_ID instead of de-CH.

This PR makes the date string parsing more robust.

According to https://cldr.unicode.org/, German weekday abbreviations use a period, whereas Swiss weekday abbreviations do not. This caused the datepicker to stop working when `de` was selected as `LOCALE_ID` instead of `de-CH`.

This PR makes the date string parsing more robust.
Copy link
Copy Markdown
Collaborator

@kyubisation kyubisation left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍
Thanks! 😄

@mhaertwig mhaertwig merged commit 2cb5427 into main May 13, 2026
18 checks passed
@mhaertwig mhaertwig deleted the feature/datepicker branch May 13, 2026 07:36
sbb-design-systems-bot Bot pushed a commit that referenced this pull request May 13, 2026
…2798)

According to https://cldr.unicode.org/, German weekday abbreviations use a period, whereas Swiss weekday abbreviations do not. This caused the datepicker to stop working when `de` was selected as `LOCALE_ID` instead of `de-CH`.

This PR makes the date string parsing more robust.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants