Explorar o código

Merge pull request #190 from shadyshrif/master

Use the localized am and pm strings in Time12hPickerModel
刘彦博 %!s(int64=4) %!d(string=hai) anos
pai
achega
e5fdb43f3e
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      lib/src/date_model.dart

+ 2 - 2
lib/src/date_model.dart

@@ -457,9 +457,9 @@ class Time12hPickerModel extends CommonPickerModel {
   @override
   String rightStringAtIndex(int index) {
     if (index == 0) {
-      return "AM";
+      return  i18nObjInLocale(this.locale)["am"];
     } else if (index == 1) {
-      return "PM";
+      return i18nObjInLocale(this.locale)["pm"];
     } else {
       return null;
     }