From 2c17aa012d2eb444d9d9bec725c06761b655201b Mon Sep 17 00:00:00 2001 From: Secozzi Date: Sat, 20 Jul 2024 17:17:50 +0200 Subject: [PATCH] feat(entry): show "Now" instead of "0 minutes ago" --- .../main/java/eu/kanade/tachiyomi/util/lang/DateExtensions.kt | 1 + i18n/src/commonMain/moko-resources/base/strings.xml | 1 + 2 files changed, 2 insertions(+) diff --git a/app/src/main/java/eu/kanade/tachiyomi/util/lang/DateExtensions.kt b/app/src/main/java/eu/kanade/tachiyomi/util/lang/DateExtensions.kt index 3bbd9f430d..45ce0cc463 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/util/lang/DateExtensions.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/util/lang/DateExtensions.kt @@ -113,6 +113,7 @@ fun LocalDateTime.toRelativeString( minuteDifference.toInt().absoluteValue, minuteDifference.toInt().absoluteValue, ) + minuteDifference == 0L -> context.stringResource(MR.strings.relative_time_now) else -> context.pluralStringResource( MR.plurals.relative_time_minutes, minuteDifference.toInt(), diff --git a/i18n/src/commonMain/moko-resources/base/strings.xml b/i18n/src/commonMain/moko-resources/base/strings.xml index ca9490f9f6..ed9c857332 100644 --- a/i18n/src/commonMain/moko-resources/base/strings.xml +++ b/i18n/src/commonMain/moko-resources/base/strings.xml @@ -153,6 +153,7 @@ Loading… InternalError: Check crash logs for further information App not available + Now Onboarding guide Welcome!