angular / angular/components

bug(mat-date-picker): the native date adapter can't detect first day of week from user locale

オープン
#23,073 コメント 7 件 リアクション 4 件 担当者 0 名 GitHub で見る
area: material/datepicker P4
主要言語
TypeScript
スター
25k
フォーク
6.8k
平均マージ
1日 8時間
マージ済み PR(30日)
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:

image

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

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。