bug(mat-date-picker): the native date adapter can't detect first day of week from user locale
未关闭
area: material/datepicker
P4
- 主要语言
- TypeScript
- 星标
- 25k
- 派生
- 6.8k
- 平均合并
- 1 天 8 小时
- 30 天内合并 PR
- 91
描述
#### Reproduction
All material datepickers display weeks starting Sunday while I have Russia locale set up which demands Monday is the first day of week:

Yes, I know I can globally change starting day via DateAdapter but I need to datepickers to be users' locale compatible.
#### Expected Behavior
Monday is first day of week
#### Actual Behavior
Sunday is first day of week.
#### Environment
- Angular: 11.0.3
- CDK/Material: 11.2.4
- Browser(s): Firefox 89
- Operating System (e.g. Windows, macOS, Ubuntu): macOS 11.4
贡献指南
调研方向
首先使用 Angular Material datepickers 和 Russia locale 重现该问题,然后检查 native date adapter 及其对 locale 的处理。完成标准是:对于该 locale,datepicker 将 Monday 显示为一周的第一天,同时保留现有的 global DateAdapter override 行为。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- angular, typescript
- 领域
- frontend
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 42/100