Explorar o código

Use the localized am and pm strings in Time12hPickerModel

Shady Sherif %!s(int64=5) %!d(string=hai) anos
pai
achega
3da40d57c1
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;
     }