Skip to content

Commit bd18e78

Browse files
authored
Fix timeOfDayFormat for Danish (flutter#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 flutter#130234.
1 parent 26a17a4 commit bd18e78

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

packages/flutter_localizations/lib/src/l10n/generated_material_localizations.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6204,7 +6204,7 @@ class MaterialLocalizationDa extends GlobalMaterialLocalizations {
62046204
String get tabLabelRaw => r'Fane $tabIndex af $tabCount';
62056205

62066206
@override
6207-
TimeOfDayFormat get timeOfDayFormatRaw => TimeOfDayFormat.HH_colon_mm;
6207+
TimeOfDayFormat get timeOfDayFormatRaw => TimeOfDayFormat.HH_dot_mm;
62086208

62096209
@override
62106210
String get timePickerDialHelpText => 'Vælg tidspunkt';

packages/flutter_localizations/lib/src/l10n/material_da.arb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"scriptCategory": "English-like",
3-
"timeOfDayFormat": "HH:mm",
3+
"timeOfDayFormat": "HH.mm",
44
"openAppDrawerTooltip": "Åbn navigationsmenuen",
55
"backButtonTooltip": "Tilbage",
66
"closeButtonTooltip": "Luk",

packages/flutter_localizations/test/material/date_time_test.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ void main() {
110110
testWidgets('formats ${TimeOfDayFormat.HH_dot_mm}', (WidgetTester tester) async {
111111
expect(await formatTimeOfDay(tester, const Locale('fi'), const TimeOfDay(hour: 20, minute: 32)), '20.32');
112112
expect(await formatTimeOfDay(tester, const Locale('fi'), const TimeOfDay(hour: 9, minute: 32)), '09.32');
113+
expect(await formatTimeOfDay(tester, const Locale('da'), const TimeOfDay(hour: 9, minute: 32)), '09.32');
113114
});
114115

115116
testWidgets('formats ${TimeOfDayFormat.frenchCanadian}', (WidgetTester tester) async {

0 commit comments

Comments
 (0)