Unverified Commit bd18e78c authored by Tae Hyung Kim's avatar Tae Hyung Kim Committed by GitHub

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.
parent 26a17a4c
...@@ -6204,7 +6204,7 @@ class MaterialLocalizationDa extends GlobalMaterialLocalizations { ...@@ -6204,7 +6204,7 @@ class MaterialLocalizationDa extends GlobalMaterialLocalizations {
String get tabLabelRaw => r'Fane $tabIndex af $tabCount'; String get tabLabelRaw => r'Fane $tabIndex af $tabCount';
@override @override
TimeOfDayFormat get timeOfDayFormatRaw => TimeOfDayFormat.HH_colon_mm; TimeOfDayFormat get timeOfDayFormatRaw => TimeOfDayFormat.HH_dot_mm;
@override @override
String get timePickerDialHelpText => 'Vælg tidspunkt'; String get timePickerDialHelpText => 'Vælg tidspunkt';
{ {
"scriptCategory": "English-like", "scriptCategory": "English-like",
"timeOfDayFormat": "HH:mm", "timeOfDayFormat": "HH.mm",
"openAppDrawerTooltip": "Åbn navigationsmenuen", "openAppDrawerTooltip": "Åbn navigationsmenuen",
"backButtonTooltip": "Tilbage", "backButtonTooltip": "Tilbage",
"closeButtonTooltip": "Luk", "closeButtonTooltip": "Luk",
......
...@@ -110,6 +110,7 @@ void main() { ...@@ -110,6 +110,7 @@ void main() {
testWidgets('formats ${TimeOfDayFormat.HH_dot_mm}', (WidgetTester tester) async { 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: 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('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 { testWidgets('formats ${TimeOfDayFormat.frenchCanadian}', (WidgetTester tester) async {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment