A11Y: aria-label for the post edit history button (#20123)

This commit is contained in:
Kris 2023-02-02 09:41:28 -05:00 committed by GitHub
parent bb2341b82c
commit 5a7b942aff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -56,6 +56,7 @@ export default createWidget("post-edits-indicator", {
translatedTitle: title,
className,
action: "onPostEditsIndicatorClick",
translatedAriaLabel: I18n.t("post.edit_history"),
translatedLabel: attrs.version > 1 ? attrs.version - 1 : "",
});
},

View File

@ -3362,6 +3362,7 @@ en:
ignored: "Ignored content"
wiki_last_edited_on: "wiki last edited on %{dateTime}"
last_edited_on: "post last edited on %{dateTime}"
edit_history: "post edit history"
reply_as_new_topic: "Reply as linked Topic"
reply_as_new_private_message: "Reply as new message to the same recipients"
continue_discussion: "Continuing the discussion from %{postLink}:"