mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-21 16:00:26 +01:00
fix: use lang key for user avatar label
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
"post-sort-option": "Post sort option, %1",
|
"post-sort-option": "Post sort option, %1",
|
||||||
"topic-sort-option": "Topic sort option, %1"
|
"topic-sort-option": "Topic sort option, %1",
|
||||||
|
"user-avatar-for": "User avatar for %1"
|
||||||
}
|
}
|
||||||
@@ -301,7 +301,7 @@ module.exports = function (utils, Benchpress, relative_path) {
|
|||||||
['title', userObj.username],
|
['title', userObj.username],
|
||||||
['data-uid', userObj.uid],
|
['data-uid', userObj.uid],
|
||||||
['loading', 'lazy'],
|
['loading', 'lazy'],
|
||||||
['aria-label', `User avatar for ${userObj.username}`],
|
['aria-label', `[[aria:user-avatar-for, ${userObj.username}]]`],
|
||||||
]);
|
]);
|
||||||
const styles = [`--avatar-size: ${size};`];
|
const styles = [`--avatar-size: ${size};`];
|
||||||
const attr2String = attributes => Array.from(attributes).reduce((output, [prop, value]) => {
|
const attr2String = attributes => Array.from(attributes).reduce((output, [prop, value]) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user