Skip to content

Commit

Permalink
feat(entry): Show "Now" instead of "0 minutes ago" (#1715)
Browse files Browse the repository at this point in the history
  • Loading branch information
Secozzi authored Jul 21, 2024
1 parent c83ebf3 commit 1d18aa3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
1 change: 1 addition & 0 deletions i18n/src/commonMain/moko-resources/base/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@
<string name="loading">Loading…</string>
<string name="internal_error">InternalError: Check crash logs for further information</string>
<string name="app_not_available">App not available</string>
<string name="relative_time_now">Now</string>
<!-- Onboarding -->
<string name="pref_onboarding_guide">Onboarding guide</string>
<string name="onboarding_heading">Welcome!</string>
Expand Down

0 comments on commit 1d18aa3

Please sign in to comment.