From ea86a790ee23433509b292c46fd517407153c59c Mon Sep 17 00:00:00 2001 From: Joe Carstairs <65492573+Sycamost@users.noreply.github.com> Date: Wed, 20 Sep 2023 21:10:17 +0100 Subject: Adds description to Lallans gallery page --- src/i18n/translations/pages/lallansGallery.ts | 25 ++++++++++++++++++++++ .../[locale]/furthsettins/lallans/index.astro | 7 +++--- 2 files changed, 29 insertions(+), 3 deletions(-) create mode 100644 src/i18n/translations/pages/lallansGallery.ts (limited to 'src') diff --git a/src/i18n/translations/pages/lallansGallery.ts b/src/i18n/translations/pages/lallansGallery.ts new file mode 100644 index 0000000..9a8261b --- /dev/null +++ b/src/i18n/translations/pages/lallansGallery.ts @@ -0,0 +1,25 @@ +import type { TranslationsDictionary } from '$types/TranslationsDictionary'; + +const tPage = { + title: { + sco: () => 'Lallans', + 'en-GB': () => 'Lallans', + }, + 'about-lallans': { + sco: () => ` + Lallans is the foremaist leiterar journal dedicatit til new Scots-leid leiteratur. + We hae furthset it isyne 1972 an pit two issues furth per year. We accep Scots + frae aw airts an in aw styles an dialects. Ye can finnd oot hoo tae submit til + Lallans on the hame page. + `, + 'en-GB': () => ` + Lallans is the leading literary journal dedicated to new Scots-language + literature. We have published it since 1972 and publish biannually. We accept + Scots of all kinds and in all styles and dialects. You can find out how to + submit to Lallans on the home page. + `, + }, +}; + +type Raw = typeof tPage; +export default tPage as TranslationsDictionary; diff --git a/src/pages/[locale]/furthsettins/lallans/index.astro b/src/pages/[locale]/furthsettins/lallans/index.astro index 1bcfe47..61f31ec 100644 --- a/src/pages/[locale]/furthsettins/lallans/index.astro +++ b/src/pages/[locale]/furthsettins/lallans/index.astro @@ -2,7 +2,7 @@ import Page from '$layouts/Page.astro'; import localeStaticPaths from '$lib/localeStaticPaths'; import translate from '$i18n/translate'; -import tFurthsettins from '$i18n/translations/pages/furthsettins'; +import tPage from '$i18n/translations/pages/lallansGallery'; import type Locale from '$types/Locale'; import LallansIssuesGallery from '$components/LallansIssuesGallery.astro'; @@ -14,9 +14,10 @@ const locale = Astro.params.locale as Locale; const t = translate(locale); --- - +
-

Lallans

+

{t(tPage, { key: 'title' })}

+

{t(tPage, { key: 'about-lallans' })}

-- cgit v1.2.3