Showing
1 changed file
with
3 additions
and
1 deletions
| @@ -490,7 +490,9 @@ class TodayTabBody extends StatelessWidget { | @@ -490,7 +490,9 @@ class TodayTabBody extends StatelessWidget { | ||
| 490 | return context.l10n.yesterday; | 490 | return context.l10n.yesterday; |
| 491 | } | 491 | } |
| 492 | if (isSameDay(selectedDay, today.subtract(const Duration(days: 2)))) { | 492 | if (isSameDay(selectedDay, today.subtract(const Duration(days: 2)))) { |
| 493 | - return l10n.theDayBeforeYesterday; | 493 | + if (context.l10n.theDayBeforeYesterday.length <= 10) { |
| 494 | + return context.l10n.theDayBeforeYesterday; | ||
| 495 | + } | ||
| 494 | } | 496 | } |
| 495 | final locale = Localizations.localeOf(context).toString(); | 497 | final locale = Localizations.localeOf(context).toString(); |
| 496 | if (selectedDay.year == today.year) { | 498 | if (selectedDay.year == today.year) { |
-
Please register or login to post a comment