diff --git a/filcnaplo/lib/utils/format.dart b/filcnaplo/lib/utils/format.dart index e03dd25..eff52b9 100644 --- a/filcnaplo/lib/utils/format.dart +++ b/filcnaplo/lib/utils/format.dart @@ -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) diff --git a/filcnaplo/lib/utils/format.i18n.dart b/filcnaplo/lib/utils/format.i18n.dart index 884042d..cb6fd38 100644 --- a/filcnaplo/lib/utils/format.i18n.dart +++ b/filcnaplo/lib/utils/format.i18n.dart @@ -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", } };