Skip to content

Commit e5fdb43

Browse files
authored
Merge pull request #190 from shadyshrif/master
Use the localized am and pm strings in Time12hPickerModel
2 parents 63871e1 + 3da40d5 commit e5fdb43

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/src/date_model.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -457,9 +457,9 @@ class Time12hPickerModel extends CommonPickerModel {
457457
@override
458458
String rightStringAtIndex(int index) {
459459
if (index == 0) {
460-
return "AM";
460+
return i18nObjInLocale(this.locale)["am"];
461461
} else if (index == 1) {
462-
return "PM";
462+
return i18nObjInLocale(this.locale)["pm"];
463463
} else {
464464
return null;
465465
}

0 commit comments

Comments
 (0)