« get me outta code hell

content: generate{Album,Flash,Track}CoverArtwork: inline alt - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies/generateAlbumCoverArtwork.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-11-19 09:37:46 -0400
committer(quasar) nebula <qznebula@protonmail.com>2024-11-19 09:37:46 -0400
commit2a98402365b59f3bb3fd571d86dd05c3ef5ac97b (patch)
treeba11b11722be941ed33f44edd9487de1fd95c40d /src/content/dependencies/generateAlbumCoverArtwork.js
parent1eee031a7e1b5eb1e2fd3d3fb7411bb7a8a841ef (diff)
content: generate{Album,Flash,Track}CoverArtwork: inline alt
Diffstat (limited to 'src/content/dependencies/generateAlbumCoverArtwork.js')
-rw-r--r--src/content/dependencies/generateAlbumCoverArtwork.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/content/dependencies/generateAlbumCoverArtwork.js b/src/content/dependencies/generateAlbumCoverArtwork.js
index 3f2066b4..99003034 100644
--- a/src/content/dependencies/generateAlbumCoverArtwork.js
+++ b/src/content/dependencies/generateAlbumCoverArtwork.js
@@ -1,5 +1,6 @@
 export default {
   contentDependencies: ['generateCoverArtwork'],
+  extraDependencies: ['language'],
 
   relations: (relation, album) => ({
     coverArtwork:
@@ -17,10 +18,11 @@ export default {
       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.albumCover'),
     }),
 };