diff options
Diffstat (limited to 'src/page')
-rw-r--r-- | src/page/album.js | 4 | ||||
-rw-r--r-- | src/page/artist.js | 12 | ||||
-rw-r--r-- | src/page/flash.js | 2 | ||||
-rw-r--r-- | src/page/group.js | 2 | ||||
-rw-r--r-- | src/page/track.js | 2 |
5 files changed, 11 insertions, 11 deletions
diff --git a/src/page/album.js b/src/page/album.js index 448ef72e..d24ebafd 100644 --- a/src/page/album.js +++ b/src/page/album.js @@ -190,7 +190,7 @@ export function write(album, {wikiData}) { }</p>`} ${album.urls?.length && `<p>${ language.$('releaseInfo.listenOn', { - links: strings.list.or(album.urls.map(url => fancifyURL(url, {album: true}))) + links: language.formatDisjunctionList(album.urls.map(url => fancifyURL(url, {album: true}))) }) }</p>`} ${album.trackGroups && (album.trackGroups.length > 1 || !album.trackGroups[0].isDefaultTrackGroup) ? fixWS` @@ -342,7 +342,7 @@ export function generateAlbumSidebar(album, currentTrack, { ${!currentTrack && transformMultiline(group.descriptionShort)} ${group.urls?.length && `<p>${ language.$('releaseInfo.visitOn', { - links: strings.list.or(group.urls.map(url => fancifyURL(url))) + links: language.formatDisjunctionList(group.urls.map(url => fancifyURL(url))) }) }</p>`} ${!currentTrack && fixWS` diff --git a/src/page/artist.js b/src/page/artist.js index 7d28feec..68eaf53b 100644 --- a/src/page/artist.js +++ b/src/page/artist.js @@ -149,7 +149,7 @@ export function write(artist, {wikiData}) { ? language.$('artistPage.creditList.entry.withArtists.withContribution', { entry, artists: getArtistString(artists), - contribution: (contrib.whatArray ? strings.list.unit(contrib.whatArray) : contrib.what) + contribution: (contrib.whatArray ? language.formatUnitList(contrib.whatArray) : contrib.what) }) : language.$('artistPage.creditList.entry.withArtists', { entry, @@ -158,7 +158,7 @@ export function write(artist, {wikiData}) { : ((contrib.what || contrib.whatArray?.length) ? language.$('artistPage.creditList.entry.withContribution', { entry, - contribution: (contrib.whatArray ? strings.list.unit(contrib.whatArray) : contrib.what) + contribution: (contrib.whatArray ? language.formatUnitList(contrib.whatArray) : contrib.what) }) : entry))); @@ -300,7 +300,7 @@ export function write(artist, {wikiData}) { <hr> `} ${urls?.length && `<p>${language.$('releaseInfo.visitOn', { - links: strings.list.or(urls.map(url => fancifyURL(url, {strings}))) + links: language.formatDisjunctionList(urls.map(url => fancifyURL(url, {strings}))) })}</p>`} ${hasGallery && `<p>${language.$('artistPage.viewArtGallery', { link: link.artistGallery(artist, { @@ -308,7 +308,7 @@ export function write(artist, {wikiData}) { }) })}</p>`} <p>${language.$('misc.jumpTo.withLinks', { - links: strings.list.unit([ + links: language.formatUnitList([ allTracks.length && `<a href="#tracks">${language.$('artistPage.trackList.title')}</a>`, artThingsAll.length && `<a href="#art">${language.$('artistPage.artList.title')}</a>`, wikiInfo.enableFlashesAndGames && flashes.length && `<a href="#flashes">${language.$('artistPage.flashList.title')}</a>`, @@ -322,7 +322,7 @@ export function write(artist, {wikiData}) { duration: language.formatDuration(totalDuration, {approximate: true, unit: true}) })}</p> <p>${language.$('artistPage.musicGroupsLine', { - groups: strings.list.unit(musicGroups + groups: language.formatUnitList(musicGroups .map(({ group, contributions }) => language.$('artistPage.groupsLine.item', { group: link.groupInfo(group), contributions: language.countContributions(contributions) @@ -338,7 +338,7 @@ export function write(artist, {wikiData}) { }) })}</p>`} <p>${language.$('artistPage.artGroupsLine', { - groups: strings.list.unit(artGroups + groups: language.formatUnitList(artGroups .map(({ group, contributions }) => language.$('artistPage.groupsLine.item', { group: link.groupInfo(group), contributions: language.countContributions(contributions) diff --git a/src/page/flash.js b/src/page/flash.js index fe72a8bd..97824e07 100644 --- a/src/page/flash.js +++ b/src/page/flash.js @@ -50,7 +50,7 @@ export function write(flash, {wikiData}) { })} <p>${language.$('releaseInfo.released', {date: language.formatDate(flash.date)})}</p> ${(flash.page || flash.urls?.length) && `<p>${language.$('releaseInfo.playOn', { - links: strings.list.or([ + links: language.formatDisjunctionList([ flash.page && getFlashLink(flash), ...flash.urls ?? [] ].map(url => fancifyFlashURL(url, flash))) diff --git a/src/page/group.js b/src/page/group.js index 0467cada..1aea3fb1 100644 --- a/src/page/group.js +++ b/src/page/group.js @@ -50,7 +50,7 @@ export function write(group, {wikiData}) { <h1>${language.$('groupInfoPage.title', {group: group.name})}</h1> ${group.urls?.length && `<p>${ language.$('releaseInfo.visitOn', { - links: strings.list.or(group.urls.map(url => fancifyURL(url, {strings}))) + links: language.formatDisjunctionList(group.urls.map(url => fancifyURL(url, {strings}))) }) }</p>`} <blockquote> diff --git a/src/page/track.js b/src/page/track.js index 295f4257..7cc6d5ab 100644 --- a/src/page/track.js +++ b/src/page/track.js @@ -196,7 +196,7 @@ export function write(track, {wikiData}) { <p>${ (track.urls?.length ? language.$('releaseInfo.listenOn', { - links: strings.list.or(track.urls.map(url => fancifyURL(url, {strings}))) + links: language.formatDisjunctionList(track.urls.map(url => fancifyURL(url, {strings}))) }) : language.$('releaseInfo.listenOn.noLinks')) }</p> |