This commit is contained in:
Baltazar Gomez 2021-07-29 11:52:34 -05:00 committed by GitHub
parent 74087d2b86
commit eee7878954
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,14 +7,14 @@ export function formatClaimPreviewTitle(title, channelTitle, date, mediaDuration
if (mediaDuration) {
if (ariaDate) {
ariaLabelData += ariaLabelData = __('%title% by %channelTitle% %ariaDate%, %mediaDuration%', {
ariaLabelData = __('%title% by %channelTitle% %ariaDate%, %mediaDuration%', {
title,
channelTitle,
ariaDate,
mediaDuration,
});
} else {
ariaLabelData += ariaLabelData = __('%title% by %channelTitle%, %mediaDuration%', {
ariaLabelData = __('%title% by %channelTitle%, %mediaDuration%', {
title,
channelTitle,
mediaDuration,
@ -22,9 +22,9 @@ export function formatClaimPreviewTitle(title, channelTitle, date, mediaDuration
}
} else {
if (ariaDate) {
ariaLabelData += ariaLabelData = __('%title% by %channelTitle% %ariaDate%', { title, channelTitle, ariaDate });
ariaLabelData = __('%title% by %channelTitle% %ariaDate%', { title, channelTitle, ariaDate });
} else {
ariaLabelData += ariaLabelData = __('%title% by %channelTitle%', { title, channelTitle });
ariaLabelData = __('%title% by %channelTitle%', { title, channelTitle });
}
}