« get me outta code hell

rename other count utils - 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:24:46 -0300
committer(quasar) nebula <qznebula@protonmail.com>2022-05-10 20:24:46 -0300
commit847b1262bf608cadd59c8d19a564badbd525a6a7 (patch)
treef4e0a659746db218e13968a3cfc5e6630dd31812 /src/page/album-commentary.js
parentc6aff602f65dfa4e5a1bc1a8c6841cdda829a0ce (diff)
rename other count utils
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 3c2b23c..5b82ca2 100644
--- a/src/page/album-commentary.js
+++ b/src/page/album-commentary.js
@@ -47,7 +47,7 @@ export function write(album, {wikiData}) {
                             album: link.album(album)
                         })}</h1>
                         <p>${language.$('albumCommentaryPage.infoLine', {
-                            words: `<b>${strings.count.words(words, {unit: true})}</b>`,
+                            words: `<b>${language.formatWordCount(words, {unit: true})}</b>`,
                             entries: `<b>${language.countCommentaryEntries(entries.length, {unit: true})}</b>`
                         })}</p>
                         ${album.commentary && fixWS`
@@ -116,7 +116,7 @@ export function writeTargetless({wikiData}) {
                     <div class="long-content">
                         <h1>${language.$('commentaryIndex.title')}</h1>
                         <p>${language.$('commentaryIndex.infoLine', {
-                            words: `<b>${strings.count.words(totalWords, {unit: true})}</b>`,
+                            words: `<b>${language.formatWordCount(totalWords, {unit: true})}</b>`,
                             entries: `<b>${language.countCommentaryEntries(totalEntries, {unit: true})}</b>`
                         })}</p>
                         <p>${language.$('commentaryIndex.albumList.title')}</p>
@@ -125,7 +125,7 @@ export function writeTargetless({wikiData}) {
                                 .map(({ album, entries, words }) => fixWS`
                                     <li>${language.$('commentaryIndex.albumList.item', {
                                         album: link.albumCommentary(album),
-                                        words: strings.count.words(words, {unit: true}),
+                                        words: language.formatWordCount(words, {unit: true}),
                                         entries: language.countCommentaryEntries(entries.length, {unit: true})
                                     })}</li>
                                 `)