UX: header avatar > change to aria-label (#25038)

This commit is contained in:
chapoi 2023-12-26 13:18:12 +02:00 committed by GitHub
parent 67d736a045
commit 3a20718526
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -176,7 +176,9 @@ createWidget(
"aria-haspopup": true,
"aria-expanded": attrs.active,
href: attrs.user.path,
title: attrs.user.name || attrs.user.username,
"aria-label":
(attrs.user.name || attrs.user.username) +
I18n.t("user.account_possessive"),
"data-auto-route": true,
},
},

View File

@ -1089,6 +1089,7 @@ en:
said: "%{username}:"
profile: "Profile"
profile_possessive: "%{username}'s profile"
account_possessive: "'s account"
mute: "Mute"
edit: "Edit Preferences"
download_archive: