show "now" instead of "in 0s" timestamps (#2843)

* Add roundoff threshold for "now" (new string resource) output in getRelativeTimeSpanString

* added tests

* added string resource translation for `status_created_at_now` in DE, ES, JA

* fixed ktlint issues

* use resource file in test, linting passes

* 501ms and 999ms now show "now" instead of "0s"
This commit is contained in:
kylegoetz 2022-12-01 12:54:29 -06:00 committed by GitHub
commit 86e5c92a05
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 37 additions and 1 deletions

View file

@ -360,6 +360,7 @@
<string name="post_media_audio">Audio</string>
<string name="post_media_attachments">Attachments</string>
<string name="status_count_one_plus">1+</string>
<string name="status_created_at_now">now</string>
<string name="state_follow_requested">Follow requested</string>