Skip to content

Commit

Permalink
[pickers] Add short weekdays token (#10988)
Browse files Browse the repository at this point in the history
Co-authored-by: Flavien DELANGLE <flaviendelangle@gmail.com>
  • Loading branch information
alexfauquette and flaviendelangle authored Nov 10, 2023
1 parent 435d564 commit 8364e2a
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,14 @@ export const testLocalization: DescribeGregorianAdapterTestSuite = ({ adapter })
const formatString = adapter.formats[formatKey];
const expandedFormat = cleanText(adapter.expandFormat(formatString));

if (expandedFormat === formatString) {
if (
expandedFormat === formatString ||
(adapter.lib === 'luxon' && formatString === 'ccccc')
) {
// Luxon format 'ccccc' is not supported by the field components since multiple day can have the same one-letter value (e.g: Tuesday and Thursday).
// It is used in the calendar header to display the day of the weeks.
// Format 'ccccc' is not supported for the field fomrat since multiple day can have the same short
// It's used to display calendar days.
return;
}

Expand Down

0 comments on commit 8364e2a

Please sign in to comment.