« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
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}!",