« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/page/news.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/page/news.js')
-rw-r--r--src/page/news.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/page/news.js b/src/page/news.js
index 47239583..4f5c5059 100644
--- a/src/page/news.js
+++ b/src/page/news.js
@@ -21,7 +21,7 @@ export function write(entry, {wikiData}) {
         page: ({
             generatePreviousNextLinks,
             link,
-            strings,
+            language,
             transformMultiline,
         }) => ({
             title: language.$('newsEntryPage.title', {entry: entry.name}),
@@ -39,7 +39,7 @@ export function write(entry, {wikiData}) {
             nav: generateNewsEntryNav(entry, {
                 generatePreviousNextLinks,
                 link,
-                strings,
+                language,
                 wikiData
             })
         })
@@ -56,7 +56,7 @@ export function writeTargetless({wikiData}) {
         path: ['newsIndex'],
         page: ({
             link,
-            strings,
+            language,
             transformMultiline
         }) => ({
             title: language.$('newsIndex.title'),
@@ -90,7 +90,7 @@ export function writeTargetless({wikiData}) {
 function generateNewsEntryNav(entry, {
     generatePreviousNextLinks,
     link,
-    strings,
+    language,
     wikiData
 }) {
     const { wikiInfo, newsData } = wikiData;
@@ -98,7 +98,7 @@ function generateNewsEntryNav(entry, {
     // The newsData list is sorted reverse chronologically (newest ones first),
     // so the way we find next/previous entries is flipped from normal.
     const previousNextLinks = generatePreviousNextLinks(entry, {
-        link, strings,
+        link, language,
         data: newsData.slice().reverse(),
         linkKey: 'newsEntry'
     });