« get me outta code hell

new tracksFeatured string - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2022-11-27 00:33:54 -0400
committer(quasar) nebula <qznebula@protonmail.com>2022-11-27 00:33:54 -0400
commitfa51edfa0d66e5d85a71ba92b0b926f039407d30 (patch)
tree8d0a90b47709fc7ac9faa33b119cfa4850d3b1b0 /src
parent0ff89848bd7252c3dfc840bc40a0bd6a9d1376bd (diff)
new tracksFeatured string
Diffstat (limited to 'src')
-rw-r--r--src/page/flash.js6
-rw-r--r--src/strings-default.json1
2 files changed, 4 insertions, 3 deletions
diff --git a/src/page/flash.js b/src/page/flash.js
index 74a6b4aa..be07039b 100644
--- a/src/page/flash.js
+++ b/src/page/flash.js
@@ -63,9 +63,9 @@ export function write(flash, {wikiData}) {
           ...html.fragment(
             !empty(flash.featuredTracks) && [
               html.tag('p',
-                `Tracks featured in <i>${
-                  flash.name.replace(/\.$/, '')
-                }</i>:`),
+                language.$('releaseInfo.tracksFeatured', {
+                  flash: html.tag('i', flash.name),
+                })),
 
               html.tag('ul',
                 flash.featuredTracks.map(track =>
diff --git a/src/strings-default.json b/src/strings-default.json
index 0196d6df..b751a80a 100644
--- a/src/strings-default.json
+++ b/src/strings-default.json
@@ -106,6 +106,7 @@
   "releaseInfo.flashesThatFeature": "Flashes & games that feature {TRACK}:",
   "releaseInfo.flashesThatFeature.item": "{FLASH}",
   "releaseInfo.flashesThatFeature.item.asDifferentRelease": "{FLASH} (as {TRACK})",
+  "releaseInfo.tracksFeatured": "Tracks that {FLASH} features:",
   "releaseInfo.lyrics": "Lyrics:",
   "releaseInfo.artistCommentary": "Artist commentary:",
   "releaseInfo.artistCommentary.seeOriginalRelease": "See {ORIGINAL}!",