« 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/generateListingPage.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/dependencies/generateListingPage.js')
-rw-r--r--src/content/dependencies/generateListingPage.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/content/dependencies/generateListingPage.js b/src/content/dependencies/generateListingPage.js
index 2050d62d..fe65a82d 100644
--- a/src/content/dependencies/generateListingPage.js
+++ b/src/content/dependencies/generateListingPage.js
@@ -167,7 +167,9 @@ export default {
         relations.sameTargetListingLinks &&
           html.tag('p',
             language.$('listingPage.listingsFor', {
-              target: language.$(`listingPage.target.${data.targetStringsKey}`),
+              target:
+                language.$('listingPage.target', data.targetStringsKey),
+
               listings:
                 language.formatUnitList(
                   stitchArrays({
@@ -175,10 +177,12 @@ export default {
                     stringsKey: data.sameTargetListingStringsKeys,
                   }).map(({link, stringsKey}, index) =>
                       html.tag('span',
-                        {class: index === data.sameTargetListingsCurrentIndex && 'current'},
+                        index === data.sameTargetListingsCurrentIndex &&
+                          {class: 'current'},
+
                         link.slots({
                           attributes: {class: 'nowrap'},
-                          content: language.$(`listingPage.${stringsKey}.title.short`),
+                          content: language.$('listingPage', stringsKey, 'title.short'),
                         })))),
             })),