flutter/dev/tools/localization
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
..
bin Implementing a few switch statements (#150946) 2024-07-01 23:36:32 +00:00
gen_cupertino_localizations.dart Use correct locale for CupertinoDatePicker weekday (#151494) 2024-07-11 00:10:17 +00:00
gen_material_localizations.dart migrate generated i18n code to super params (#101065) 2022-03-30 12:20:14 -07:00
gen_widgets_localizations.dart Adds i18n to widget layer (#123620) 2023-04-04 22:57:35 +00:00
language_subtag_registry.dart Sync lints (#68136) 2020-10-15 15:37:04 -07:00
localizations_utils.dart switch statement cleanup (#148382) 2024-05-16 17:16:06 -07:00
localizations_validator.dart Unify analysis options (#108462) 2022-07-28 09:07:49 -07:00