summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoe Carstairs <65492573+Sycamost@users.noreply.github.com>2023-09-21 22:09:59 +0100
committerGitHub <noreply@github.com>2023-09-21 22:09:59 +0100
commit005cba86fefc395b157d71b4c6233dba320afb05 (patch)
treea4876fa46418830cdc5dcdcbfc3f36bc2fde5512 /src
parentaaac97183965e6edd4cbab9a9ea3be1fb90bfef2 (diff)
parentc357a2af03a8abf960941156414b990d50c48b76 (diff)
Merge pull request #6 from Sycamost/dev
Dev
Diffstat (limited to 'src')
-rw-r--r--src/i18n/translations/pages/home.ts20
-rw-r--r--src/i18n/translations/pages/lallansGallery.ts25
-rw-r--r--src/i18n/translations/pages/scotsounGallery.ts10
-rw-r--r--src/pages/[locale]/furthsettins/lallans/index.astro7
-rw-r--r--src/pages/[locale]/furthsettins/scotsoun/index.astro1
-rw-r--r--src/pages/[locale]/index.astro5
6 files changed, 65 insertions, 3 deletions
diff --git a/src/i18n/translations/pages/home.ts b/src/i18n/translations/pages/home.ts
index 2b9a2c3..09071ff 100644
--- a/src/i18n/translations/pages/home.ts
+++ b/src/i18n/translations/pages/home.ts
@@ -5,6 +5,26 @@ const tPage = {
sco: () => 'Hame',
'en-GB': () => 'Home',
},
+ submit: {
+ sco: () => 'Submit til Lallans',
+ 'en-GB': () => 'Submit to Lallans',
+ },
+ 'submit-para-1': {
+ sco: () => 'We ar acceptin submeissions til Lallans 102!',
+ 'en-GB': () => 'We are accepting submissions to Lallans 102!',
+ },
+ 'submit-para-2': {
+ sco: () => `
+ We accep poesie, cuttie tales, reviews, essays an drama, baith
+ oreiginal an owerset. Sen yer submeissions til
+ <a class="link" href="mailto:lallans@hotmail.co.uk">lallans@hotmail.co.uk</a>.
+ `,
+ 'en-GB': () => `
+ We accept poetry, short stories, reviews, essays and drama, both
+ original and translated. Send your submissions to
+ <a class="link" href="mailto:lallans@hotmail.co.uk">lallans@hotmail.co.uk</a>.
+ `,
+ },
news: {
sco: () => 'Recent News',
'en-GB': () => 'Recent News',
diff --git a/src/i18n/translations/pages/lallansGallery.ts b/src/i18n/translations/pages/lallansGallery.ts
new file mode 100644
index 0000000..a6be372
--- /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 syne 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/i18n/translations/pages/scotsounGallery.ts b/src/i18n/translations/pages/scotsounGallery.ts
index 0e78e9c..6ac9cfd 100644
--- a/src/i18n/translations/pages/scotsounGallery.ts
+++ b/src/i18n/translations/pages/scotsounGallery.ts
@@ -5,6 +5,16 @@ const tPage = {
sco: () => 'Scotsoun',
'en-GB': () => 'Scotsoun',
},
+ 'about-scotsoun': {
+ sco: () => `
+ Scotsoun is oor lang-rinnin series o Scots-leid audio recordins, i the form o tales,
+ drama, sangs, an poesie readins. Forby, we hae some muisic CDs.
+ `,
+ 'en-GB': () => `
+ Scotsoun is our long-running series of Scots-language audio recordings, in the form
+ of stories, drama, songs and poetry readings. We also have some music CDs.
+ `,
+ },
};
type Raw = typeof tPage;
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>
diff --git a/src/pages/[locale]/furthsettins/scotsoun/index.astro b/src/pages/[locale]/furthsettins/scotsoun/index.astro
index bace876..26f1f13 100644
--- a/src/pages/[locale]/furthsettins/scotsoun/index.astro
+++ b/src/pages/[locale]/furthsettins/scotsoun/index.astro
@@ -17,6 +17,7 @@ const t = translate(locale);
<Page title={t(tPage, { key: 'title' })}>
<section>
<h1>Scotsoun</h1>
+ <p>{t(tPage, { key: 'about-scotsoun' })}</p>
<ScotsounCdGallery />
</section>
</Page>
diff --git a/src/pages/[locale]/index.astro b/src/pages/[locale]/index.astro
index f031e8e..a230aee 100644
--- a/src/pages/[locale]/index.astro
+++ b/src/pages/[locale]/index.astro
@@ -23,6 +23,11 @@ const mostRecentNewsItem = await getMostRecentNewsItem(locale);
<Page title={t(tPage, { key: 'title' })}>
<section>
+ <h2 set:html={t(tPage, { key: 'submit' })} />
+ <p set:html={t(tPage, { key: 'submit-para-1' })} />
+ <p set:html={t(tPage, { key: 'submit-para-2' })} />
+ </section>
+ <section>
<h2 class="grid-span-6" set:html={t(tPage, { key: 'news' })} />
<NewsIndex newsItems={mostRecentNewsItem ? [mostRecentNewsItem] : []} headingLevel="h3" />
{