Add translation for "time ago" wording

This commit is contained in:
Andreas Nedbal 2022-02-19 00:40:49 +01:00 committed by Andreas Nedbal
parent ebaa7bfa87
commit edf3d3db15
2 changed files with 4 additions and 2 deletions

View File

@ -105,7 +105,7 @@
%p.text-muted %p.text-muted
- if current_user.created_at - if current_user.created_at
= localize(current_user.created_at) = localize(current_user.created_at)
= " (#{time_ago_in_words(current_user.created_at)} ago)" = " (#{t("time.distance_ago", time: time_ago_in_words(current_user.created_at))})"
- else - else
= t(".none") = t(".none")
@ -113,6 +113,6 @@
%p.text-muted %p.text-muted
- if current_user.created_at - if current_user.created_at
= localize(current_user.updated_at) = localize(current_user.updated_at)
= " (#{time_ago_in_words(current_user.updated_at)} ago)" = " (#{t("time.distance_ago", time: time_ago_in_words(current_user.updated_at))})"
- else - else
= t(".none") = t(".none")

View File

@ -12,3 +12,5 @@ en:
update: "Update" update: "Update"
messages: messages:
noauth: "You must be signed in to do this." noauth: "You must be signed in to do this."
time:
distance_ago: "%{time} ago"