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:
Tae Hyung Kim
2023-07-13 16:46:49 -07:00
committed by GitHub
parent 26a17a4cba
commit bd18e78c9c
3 changed files with 3 additions and 2 deletions

View File

@@ -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';

View File

@@ -1,6 +1,6 @@
{
"scriptCategory": "English-like",
"timeOfDayFormat": "HH:mm",
"timeOfDayFormat": "HH.mm",
"openAppDrawerTooltip": "Åbn navigationsmenuen",
"backButtonTooltip": "Tilbage",
"closeButtonTooltip": "Luk",

View File

@@ -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 {