From 2a98402365b59f3bb3fd571d86dd05c3ef5ac97b Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Tue, 19 Nov 2024 09:37:46 -0400 Subject: content: generate{Album,Flash,Track}CoverArtwork: inline alt --- src/content/dependencies/generateTrackCoverArtwork.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/content/dependencies/generateTrackCoverArtwork.js') diff --git a/src/content/dependencies/generateTrackCoverArtwork.js b/src/content/dependencies/generateTrackCoverArtwork.js index df4e37a4..64690c71 100644 --- a/src/content/dependencies/generateTrackCoverArtwork.js +++ b/src/content/dependencies/generateTrackCoverArtwork.js @@ -1,5 +1,6 @@ export default { contentDependencies: ['generateCoverArtwork'], + extraDependencies: ['language'], relations: (relation, track) => ({ coverArtwork: @@ -27,11 +28,12 @@ export default { : track.album.coverArtDimensions), }), - generate: (data, relations) => + generate: (data, relations, {language}) => relations.coverArtwork.slots({ path: data.path, color: data.color, dimensions: data.dimensions, + alt: language.$('misc.alt.trackCover'), }), }; -- cgit 1.3.0-6-gf8a5