add tomorrow

This commit is contained in:
unknown 2021-10-02 15:35:36 +02:00
parent 8ab96a32c3
commit d9e8b4f4ed
No known key found for this signature in database
GPG Key ID: 1D070E0B09CFB257
2 changed files with 4 additions and 0 deletions

View File

@ -42,6 +42,7 @@ extension DateFormatUtils on DateTime {
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.add(Duration(days: 1)).day == this.day) return "Tomorrow".i18n;
String formatString;
if (this.year == now.year)

View File

@ -6,14 +6,17 @@ extension Localization on String {
"en_en": {
"Today": "Today",
"Yesterday": "Yesterday",
"Tomorrow": "Tomorrow",
},
"hu_hu": {
"Today": "Ma",
"Yesterday": "Tegnap",
"Tomorrow": "Holnap",
},
"de_de": {
"Today": "Heute",
"Yesterday": "Gestern",
"Tomorrow": "Morgen",
}
};