diff options
| author | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2023-09-20 21:10:17 +0100 |
|---|---|---|
| committer | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2023-09-20 21:10:17 +0100 |
| commit | ea86a790ee23433509b292c46fd517407153c59c (patch) | |
| tree | 29a54fcea30b657300ece1079df96d6fb35f599e /src | |
| parent | c24f646daf9a503531baea046a962f2fd0478a8e (diff) | |
Adds description to Lallans gallery page
Diffstat (limited to 'src')
| -rw-r--r-- | src/i18n/translations/pages/lallansGallery.ts | 25 | ||||
| -rw-r--r-- | src/pages/[locale]/furthsettins/lallans/index.astro | 7 |
2 files changed, 29 insertions, 3 deletions
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<Raw>; 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); --- -<Page title={t(tFurthsettins, { key: 'title' })}> +<Page title={t(tPage, { key: 'title' })}> <section> - <h1>Lallans</h1> + <h1>{t(tPage, { key: 'title' })}</h1> + <p>{t(tPage, { key: 'about-lallans' })}</p> <LallansIssuesGallery /> </section> </Page> |
