Fix timeOfDayFormat for Danish (#130437)
See title. According to [CLDR](https://icu4c-demos.unicode.org/icu-bin/locexp?_=da_DK&d_=en&_l=da), proper time of day format should be `HH.mm`. Fixes https://github.com/flutter/flutter/issues/130234.
This commit is contained in:
@@ -6204,7 +6204,7 @@ class MaterialLocalizationDa extends GlobalMaterialLocalizations {
|
||||
String get tabLabelRaw => r'Fane $tabIndex af $tabCount';
|
||||
|
||||
@override
|
||||
TimeOfDayFormat get timeOfDayFormatRaw => TimeOfDayFormat.HH_colon_mm;
|
||||
TimeOfDayFormat get timeOfDayFormatRaw => TimeOfDayFormat.HH_dot_mm;
|
||||
|
||||
@override
|
||||
String get timePickerDialHelpText => 'Vælg tidspunkt';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"scriptCategory": "English-like",
|
||||
"timeOfDayFormat": "HH:mm",
|
||||
"timeOfDayFormat": "HH.mm",
|
||||
"openAppDrawerTooltip": "Åbn navigationsmenuen",
|
||||
"backButtonTooltip": "Tilbage",
|
||||
"closeButtonTooltip": "Luk",
|
||||
|
||||
@@ -110,6 +110,7 @@ void main() {
|
||||
testWidgets('formats ${TimeOfDayFormat.HH_dot_mm}', (WidgetTester tester) async {
|
||||
expect(await formatTimeOfDay(tester, const Locale('fi'), const TimeOfDay(hour: 20, minute: 32)), '20.32');
|
||||
expect(await formatTimeOfDay(tester, const Locale('fi'), const TimeOfDay(hour: 9, minute: 32)), '09.32');
|
||||
expect(await formatTimeOfDay(tester, const Locale('da'), const TimeOfDay(hour: 9, minute: 32)), '09.32');
|
||||
});
|
||||
|
||||
testWidgets('formats ${TimeOfDayFormat.frenchCanadian}', (WidgetTester tester) async {
|
||||
|
||||
Reference in New Issue
Block a user