« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies/generateTrackCoverArtwork.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/dependencies/generateTrackCoverArtwork.js')
-rw-r--r--src/content/dependencies/generateTrackCoverArtwork.js4
1 files changed, 3 insertions, 1 deletions
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'),
     }),
 };