« get me outta code hell

content: generateAdditionalFilesListChunk: basic capsule - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-06-13 17:51:26 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-06-18 22:56:12 -0300
commitd2a6d2f75fa1d2e6452d4c67574c6a1ea9fabe5e (patch)
tree57523aa7cee5b4b797ff95c0ca3d48af447a6e5a
parent5e7a0113594fdd42eb3a265de009eb0b0e823b9e (diff)
content: generateAdditionalFilesListChunk: basic capsule
-rw-r--r--src/content/dependencies/generateAdditionalFilesListChunk.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/content/dependencies/generateAdditionalFilesListChunk.js b/src/content/dependencies/generateAdditionalFilesListChunk.js
index 5804115a..e6a97898 100644
--- a/src/content/dependencies/generateAdditionalFilesListChunk.js
+++ b/src/content/dependencies/generateAdditionalFilesListChunk.js
@@ -18,10 +18,13 @@ export default {
   },
 
   generate(slots, {html, language}) {
+    const capsule =
+      language.encapsulate('releaseInfo.additionalFiles.entry');
+
     const summary =
       html.tag('summary',
         html.tag('span',
-          language.$('releaseInfo.additionalFiles.entry', {
+          language.$(capsule, {
             title:
               html.tag('span', {class: 'group-name'},
                 slots.title),
@@ -35,7 +38,7 @@ export default {
     const items =
       (html.isBlank(slots.items)
         ? html.tag('li',
-            language.$('releaseInfo.additionalFiles.entry.noFilesAvailable'))
+            language.$(capsule, 'noFilesAvailable'))
         : slots.items);
 
     const content =