Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -132,3 +132,4 @@ dy0gu <[email protected]>
Albert Wolszon <[email protected]>
Mohammed Chahboun <[email protected]>
Abdessalem Mohellebi <[email protected]>
Jin Jeongsu <[email protected]>
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"datePickerMinuteSemanticsLabelOne": "1분",
"datePickerMinuteSemanticsLabelOther": "$minute분",
"datePickerDateOrder": "ymd",
"datePickerDateTimeOrder": "date_time_dayPeriod",
"datePickerDateTimeOrder": "date_dayPeriod_time",
"anteMeridiemAbbreviation": "오전",
"postMeridiemAbbreviation": "오후",
"todayLabel": "오늘",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7936,7 +7936,7 @@ class CupertinoLocalizationKo extends GlobalCupertinoLocalizations {
String get datePickerDateOrderString => 'ymd';

@override
String get datePickerDateTimeOrderString => 'date_time_dayPeriod';
String get datePickerDateTimeOrderString => 'date_dayPeriod_time';

@override
String? get datePickerHourSemanticsLabelFew => null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,20 @@ void main() {
expect(localizations.datePickerDayOfMonth(1), '1日');
expect(localizations.datePickerDayOfMonth(1, 2), '周二 1日');
});

testWidgets('Test correct time order for CupertinoDatePicker in Korean locale', (
WidgetTester tester,
) async {
const Locale locale = Locale('ko');
expect(GlobalCupertinoLocalizations.delegate.isSupported(locale), isTrue);

final CupertinoLocalizations localizations = await GlobalCupertinoLocalizations.delegate.load(
locale,
);

expect(localizations, isA<CupertinoLocalizationKo>());
expect(localizations.datePickerDateTimeOrder, DatePickerDateTimeOrder.date_dayPeriod_time);
});
}

class _FakeEditableText extends EditableText {
Expand Down