« get me outta code hell

rename count functions - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/page/album-commentary.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2022-05-10 20:14:56 -0300
committer(quasar) nebula <qznebula@protonmail.com>2022-05-10 20:14:56 -0300
commit4749a682d55469b3df994ab76b29e62cf570b78c (patch)
tree2ed656631d3ea7c6684a201f418ad74d5303fef9 /src/page/album-commentary.js
parent6bcb224a35eb8b6e6c04b007c3faf168996779a4 (diff)
rename count functions
Diffstat (limited to 'src/page/album-commentary.js')
-rw-r--r--src/page/album-commentary.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/page/album-commentary.js b/src/page/album-commentary.js
index c03ae3d..90b36fc 100644
--- a/src/page/album-commentary.js
+++ b/src/page/album-commentary.js
@@ -48,7 +48,7 @@ export function write(album, {wikiData}) {
                         })}</h1>
                         <p>${strings('albumCommentaryPage.infoLine', {
                             words: `<b>${strings.count.words(words, {unit: true})}</b>`,
-                            entries: `<b>${strings.count.commentaryEntries(entries.length, {unit: true})}</b>`
+                            entries: `<b>${language.countCommentaryEntries(entries.length, {unit: true})}</b>`
                         })}</p>
                         ${album.commentary && fixWS`
                             <h3>${strings('albumCommentaryPage.entry.title.albumCommentary')}</h3>
@@ -117,7 +117,7 @@ export function writeTargetless({wikiData}) {
                         <h1>${strings('commentaryIndex.title')}</h1>
                         <p>${strings('commentaryIndex.infoLine', {
                             words: `<b>${strings.count.words(totalWords, {unit: true})}</b>`,
-                            entries: `<b>${strings.count.commentaryEntries(totalEntries, {unit: true})}</b>`
+                            entries: `<b>${language.countCommentaryEntries(totalEntries, {unit: true})}</b>`
                         })}</p>
                         <p>${strings('commentaryIndex.albumList.title')}</p>
                         <ul>
@@ -126,7 +126,7 @@ export function writeTargetless({wikiData}) {
                                     <li>${strings('commentaryIndex.albumList.item', {
                                         album: link.albumCommentary(album),
                                         words: strings.count.words(words, {unit: true}),
-                                        entries: strings.count.commentaryEntries(entries.length, {unit: true})
+                                        entries: language.countCommentaryEntries(entries.length, {unit: true})
                                     })}</li>
                                 `)
                                 .join('\n')}