forked from firka/student-legacy
add tomorrow
This commit is contained in:
parent
8ab96a32c3
commit
d9e8b4f4ed
@ -42,6 +42,7 @@ extension DateFormatUtils on DateTime {
|
|||||||
return DateFormat("HH:mm").format(this);
|
return DateFormat("HH:mm").format(this);
|
||||||
}
|
}
|
||||||
if (now.year == this.year && now.month == this.month && now.subtract(Duration(days: 1)).day == this.day) return "Yesterday".i18n;
|
if (now.year == this.year && now.month == this.month && now.subtract(Duration(days: 1)).day == this.day) return "Yesterday".i18n;
|
||||||
|
if (now.year == this.year && now.month == this.month && now.add(Duration(days: 1)).day == this.day) return "Tomorrow".i18n;
|
||||||
|
|
||||||
String formatString;
|
String formatString;
|
||||||
if (this.year == now.year)
|
if (this.year == now.year)
|
||||||
|
@ -6,14 +6,17 @@ extension Localization on String {
|
|||||||
"en_en": {
|
"en_en": {
|
||||||
"Today": "Today",
|
"Today": "Today",
|
||||||
"Yesterday": "Yesterday",
|
"Yesterday": "Yesterday",
|
||||||
|
"Tomorrow": "Tomorrow",
|
||||||
},
|
},
|
||||||
"hu_hu": {
|
"hu_hu": {
|
||||||
"Today": "Ma",
|
"Today": "Ma",
|
||||||
"Yesterday": "Tegnap",
|
"Yesterday": "Tegnap",
|
||||||
|
"Tomorrow": "Holnap",
|
||||||
},
|
},
|
||||||
"de_de": {
|
"de_de": {
|
||||||
"Today": "Heute",
|
"Today": "Heute",
|
||||||
"Yesterday": "Gestern",
|
"Yesterday": "Gestern",
|
||||||
|
"Tomorrow": "Morgen",
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user