--- import { Image } from 'astro:assets'; import translate from '$i18n/translate'; import tSite from '$i18n/translations/site'; import tComponent from '$i18n/translations/components/scotsoun'; import type Scotsoun from '$types/Scotsoun'; import PayPalButtons from './PayPalButtons.astro'; import relativePath from '$lib/relativePath'; import { getLocaleFromPathOrThrow } from '$lib/getLocaleFromPath'; interface Props { scotsoun: Scotsoun; } const { scotsoun } = Astro.props; const locale = getLocaleFromPathOrThrow(Astro.url.pathname); const t = translate(locale); ---

{scotsoun.title}

Scotsoun SSCD{scotsoun.scotsounId}

{scotsoun?.subtitle &&

{scotsoun.subtitle}

} {scotsoun?.author &&

{t(tSite, { key: 'by' }) + ' ' + scotsoun.author}

}
{scotsoun?.description &&

} { scotsoun?.coverArtist && (

{t(tComponent, { key: 'cover-artist', coverArtist: scotsoun.coverArtist })}

) } { scotsoun?.releaseDate && (

{t(tComponent, { key: 'release-date', releaseDate: scotsoun.releaseDate })}

) } { scotsoun?.trackList && scotsoun.trackList.length > 1 && ( <>

Track list

    {scotsoun.trackList.map((track) => (
  1. {track}
  2. ))}
) }