Skip to content

Commit

Permalink
Fix Finnish TimeOfDate format (#118204)
Browse files Browse the repository at this point in the history
* init

* add test
  • Loading branch information
thkim1011 committed Jan 11, 2023
1 parent 12b43ed commit b13f83a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
Expand Up @@ -13227,7 +13227,7 @@ class MaterialLocalizationFi extends GlobalMaterialLocalizations {
String get tabLabelRaw => r'Välilehti $tabIndex/$tabCount';

@override
TimeOfDayFormat get timeOfDayFormatRaw => TimeOfDayFormat.HH_colon_mm;
TimeOfDayFormat get timeOfDayFormatRaw => TimeOfDayFormat.HH_dot_mm;

@override
String get timePickerDialHelpText => 'VALITSE AIKA';
Expand Down
@@ -1,6 +1,6 @@
{
"scriptCategory": "English-like",
"timeOfDayFormat": "HH:mm",
"timeOfDayFormat": "HH.mm",
"openAppDrawerTooltip": "Avaa navigointivalikko",
"backButtonTooltip": "Takaisin",
"closeButtonTooltip": "Sulje",
Expand Down
Expand Up @@ -107,6 +107,11 @@ void main() {
expect(await formatTimeOfDay(tester, const Locale('ja'), const TimeOfDay(hour: 20, minute: 32)), '20:32');
});

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');
});

testWidgets('formats ${TimeOfDayFormat.frenchCanadian}', (WidgetTester tester) async {
expect(await formatTimeOfDay(tester, const Locale('fr', 'CA'), const TimeOfDay(hour: 9, minute: 32)), '09 h 32');
});
Expand Down

0 comments on commit b13f83a

Please sign in to comment.