flutter/packages/flutter_localizations/test
Victor Sanni ceeeb7d090
Use correct locale for CupertinoDatePicker weekday (#151494)
#120052 introduces the `showDayOfWeek` flag to `CupertinoDatePicker` for mode `CupertinoDatePickerMode.date`, but the default `en` locale from `DefaultCupertinoLocalizations` is always used for the day of the week:

5103d75743/packages/flutter_localizations/lib/src/cupertino_localizations.dart (L116-L119)

This PR introduces a new `intl.DateFormat` `weekdayFormat` to replace the default with the abbreviated weekday for any supported locales.

| Before | After | 
| --- | --- |
|  <img width="379" alt="Screenshot 2024-07-09 at 5 08 43 PM" src="https://github.com/flutter/flutter/assets/77553258/d6899c6b-bd0a-4484-a6a8-3ef1512aeae1">  |  <img width="379" alt="Screenshot 2024-07-09 at 5 08 11 PM" src="https://github.com/flutter/flutter/assets/77553258/f320c634-80d1-4f3b-adfd-ed85a9dfc3f6"> |

Fixes #141875
2024-07-11 00:10:17 +00:00
..
cupertino Use correct locale for CupertinoDatePicker weekday (#151494) 2024-07-11 00:10:17 +00:00
material Roll pub packages manually (#145170) 2024-03-15 14:12:22 +00:00
widgets Remove dead code (#126266) 2023-05-09 15:47:16 +00:00
basics_test.dart Seperate localization tests for Material2 and Material3 (#135779) 2023-10-10 21:46:20 +00:00
override_test.dart Use FlutterError.reportError instead of debugPrint for l10n warning (#93076) 2021-11-30 17:24:05 -08:00
test_utils.dart Use curly_braces_in_flow_control_structures for non-flutter packages (#104629) 2022-05-25 20:01:11 +02:00
text_test.dart Seperate localization tests for Material2 and Material3 (#135779) 2023-10-10 21:46:20 +00:00
widgets_test.dart Use curly_braces_in_flow_control_structures for non-flutter packages (#104629) 2022-05-25 20:01:11 +02:00