From 35c242f6abb614e1d545fb8a2a1180a451c22a54 Mon Sep 17 00:00:00 2001 From: Joe Carstairs <65492573+Sycamost@users.noreply.github.com> Date: Sun, 27 Aug 2023 18:26:45 +0100 Subject: Scotsoun release title includes ID --- src/components/Scotsoun.astro | 1 + src/i18n/translations/pages/scotsounRelease.ts | 14 ++++++++++++++ .../furthsettins/scotsoun/[scotsounId]/index.astro | 4 ++-- 3 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 src/i18n/translations/pages/scotsounRelease.ts (limited to 'src') 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);
Scotsoun SSCD{scotsoun.scotsounId}
{scotsoun?.subtitle &&{scotsoun.subtitle}
} { 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{t(tPage, { key: 'mair-commattee-details-soon' })}