diff options
| author | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2023-08-27 18:26:45 +0100 |
|---|---|---|
| committer | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2023-08-27 18:29:47 +0100 |
| commit | 35c242f6abb614e1d545fb8a2a1180a451c22a54 (patch) | |
| tree | 12b905e8f8f489a4415ee37cdab4b55042f979ff /src | |
| parent | 85675451bcdeaf57d0887305f23731c5837a95a1 (diff) | |
Scotsoun release title includes ID
Diffstat (limited to 'src')
| -rw-r--r-- | src/components/Scotsoun.astro | 1 | ||||
| -rw-r--r-- | src/i18n/translations/pages/scotsounRelease.ts | 14 | ||||
| -rw-r--r-- | src/pages/[locale]/furthsettins/scotsoun/[scotsounId]/index.astro | 4 |
3 files changed, 17 insertions, 2 deletions
diff --git a/src/components/Scotsoun.astro b/src/components/Scotsoun.astro index 1c2b1a0..3af652e 100644 --- a/src/components/Scotsoun.astro +++ b/src/components/Scotsoun.astro @@ -20,6 +20,7 @@ const t = translate(locale); <div class="product__header-block"> <header> <h1>{scotsoun.title}</h1> + <p class="italic">Scotsoun SSCD{scotsoun.scotsounId}</p> {scotsoun?.subtitle && <p class="italic">{scotsoun.subtitle}</p>} { scotsoun?.author && ( diff --git a/src/i18n/translations/pages/scotsounRelease.ts b/src/i18n/translations/pages/scotsounRelease.ts new file mode 100644 index 0000000..d4036d8 --- /dev/null +++ b/src/i18n/translations/pages/scotsounRelease.ts @@ -0,0 +1,14 @@ +import type ScotsounId from '$types/ScotsounId'; +import type { TranslationsDictionary } from '$types/TranslationsDictionary'; + +const tPage = { + title: { + sco: ({ scotsounId, name }: { scotsounId: ScotsounId; name: string }) => + `${name} (Scotsoun SSCD${scotsounId})`, + 'en-GB': ({ scotsounId, name }: { scotsounId: ScotsounId; name: string }) => + `${name} (Scotsoun SSCD${scotsounId})`, + }, +}; + +type Raw = typeof tPage; +export default tPage as TranslationsDictionary<Raw>; diff --git a/src/pages/[locale]/furthsettins/scotsoun/[scotsounId]/index.astro b/src/pages/[locale]/furthsettins/scotsoun/[scotsounId]/index.astro index a641561..90053fe 100644 --- a/src/pages/[locale]/furthsettins/scotsoun/[scotsounId]/index.astro +++ b/src/pages/[locale]/furthsettins/scotsoun/[scotsounId]/index.astro @@ -1,7 +1,7 @@ --- import Page from '$layouts/Page.astro'; import localeStaticPaths from '$lib/localeStaticPaths'; -import tPage from '$i18n/translations/pages/scotsounGallery'; +import tPage from '$i18n/translations/pages/scotsounRelease'; import translate from '$i18n/translate'; import type Locale from '$types/Locale'; import { getScotsoun } from '$data/scotsoun'; @@ -22,6 +22,6 @@ const t = translate(locale); const scotsoun = await getScotsoun[scotsounId](); --- -<Page title={t(tPage, { key: 'title' })}> +<Page title={t(tPage, { key: 'title', scotsounId, name: scotsoun.title })}> <Scotsoun scotsoun={scotsoun} /> </Page> |
