diff options
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 |
commit | 847b1262bf608cadd59c8d19a564badbd525a6a7 (patch) | |
tree | f4e0a659746db218e13968a3cfc5e6630dd31812 /src/page/album-commentary.js | |
parent | c6aff602f65dfa4e5a1bc1a8c6841cdda829a0ce (diff) |
rename other count utils
Diffstat (limited to 'src/page/album-commentary.js')
-rw-r--r-- | src/page/album-commentary.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/page/album-commentary.js b/src/page/album-commentary.js index 3c2b23cc..5b82ca23 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> `) |