Tweak i18n edited date format(#19104)

This commit is contained in:
yheuhtozr 2023-02-22 08:30:57 +09:00 committed by GitHub
parent 814080dc3b
commit 561ed1858f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 7 deletions

View file

@ -6,8 +6,11 @@
</time>
<% if decorated_comment.edited_at.present? %>
<%= t("views.comments.edited.text_html",
on: tag.span(t("views.comments.edited.on_html", date: tag.time(decorated_comment.edited_at.strftime(t("time.formats.short")), datetime: decorated_comment.edited_timestamp, class: %w[hidden m:inline-block date-no-year])))
) %>
<span class="hidden m:inline-block"><%=
t("views.comments.edited.text_html",
date: tag.time(decorated_comment.edited_at.strftime(t("time.formats.short")), datetime: decorated_comment.edited_timestamp, class: %w[date-no-year])
)
%></span>
<span class="m:hidden"><%= t("views.comments.edited.short_html") %></span>
<% end %>
</a>

View file

@ -32,8 +32,8 @@ en:
collapse: Collapse
edit: Editing comment
edited:
text_html: "&bull; Edited %{on}"
on_html: on %{date}
text_html: "&bull; Edited on %{date}"
short_html: "&bull; Edited"
expand: Expand
visible_signed_in:
text_html: "Some comments may only be visible to logged-in visitors. %{sign_in} to view all comments."

View file

@ -32,8 +32,8 @@ fr:
collapse: Collapse
edit: Editing comment
edited:
text_html: "&bull; Edited %{on}"
on_html: on %{date}
text_html: "&bull; Edited on %{date}"
short_html: "&bull; Edited"
expand: Expand
visible_signed_in:
text_html: "Some comments may only be visible to logged-in visitors. %{sign_in} to view all comments."