summaryrefslogtreecommitdiff
path: root/src/i18n
diff options
context:
space:
mode:
authorJoe Carstairs <65492573+joeacarstairs@users.noreply.github.com>2024-10-13 17:49:03 +0100
committerGitHub <noreply@github.com>2024-10-13 17:49:03 +0100
commit7eea6da108ab664cdc0e1a2691159cfafa981ac7 (patch)
tree0e08447045bf28ab4210be7a9a0238eef9037168 /src/i18n
parent2febffe5e3036c4b35dff4a8b274f42a7f8fef42 (diff)
parentdcdc91cbd06b82b042e601f792a1a5b08d9b82ce (diff)
Merge pull request #104 from joeacarstairs/staging
Update
Diffstat (limited to 'src/i18n')
-rw-r--r--src/i18n/translate.ts9
-rw-r--r--src/i18n/translations/pages/contact.ts11
-rw-r--r--src/i18n/translations/pages/home.ts54
-rw-r--r--src/i18n/translations/pages/jyne.ts4
-rw-r--r--src/i18n/translations/pages/lallansGallery.ts4
-rw-r--r--src/i18n/translations/pages/submit.ts49
6 files changed, 70 insertions, 61 deletions
diff --git a/src/i18n/translate.ts b/src/i18n/translate.ts
index 0366798..09e227c 100644
--- a/src/i18n/translate.ts
+++ b/src/i18n/translate.ts
@@ -14,10 +14,11 @@ type TranslationsDictionaryWith<
}>;
export default function (locale: Locale) {
- return function <Key extends string | number, ParamsHash extends object>(
- dict: TranslationsDictionaryWith<Key, ParamsHash>,
- params: { key: Key } & ParamsHash
- ) {
+ return function <
+ Key extends string | number,
+ ParamsHash extends object,
+ Dict extends TranslationsDictionaryWith<Key, ParamsHash>,
+ >(dict: Dict, params: { key: Key } & ParamsHash) {
if (!(params.key in dict)) {
throw new Error(`
Could not find translation for key '${params.key}'. Available keys were:
diff --git a/src/i18n/translations/pages/contact.ts b/src/i18n/translations/pages/contact.ts
new file mode 100644
index 0000000..0599477
--- /dev/null
+++ b/src/i18n/translations/pages/contact.ts
@@ -0,0 +1,11 @@
+import type { TranslationsDictionary } from '$types/TranslationsDictionary';
+
+const tPage = {
+ title: {
+ sco: () => 'Contact',
+ 'en-GB': () => 'Contact',
+ },
+};
+
+type Raw = typeof tPage;
+export default tPage as TranslationsDictionary<Raw>;
diff --git a/src/i18n/translations/pages/home.ts b/src/i18n/translations/pages/home.ts
index 7e1a3bd..1189904 100644
--- a/src/i18n/translations/pages/home.ts
+++ b/src/i18n/translations/pages/home.ts
@@ -5,54 +5,6 @@ const tPage = {
sco: () => 'Hame',
'en-GB': () => 'Home',
},
- submit: {
- sco: () => 'Lallans 105 apen for sub\u00admeissions',
- 'en-GB': () => 'Lallans 105 open for sub\u00admissions',
- },
- 'submit-para-1': {
- sco: () => `
- We ar acceptin submeissions til Lallans 105.
- `,
- 'en-GB': () => `
- We are accepting submissions to Lallans 105.
- `,
- },
- 'submit-para-2': {
- sco: () => `
- Send us your cuttie tales, poesie and drama til
- <a href="mailto:lallans@hotmail.co.uk">lallans@hotmail.co.uk</a>.
- `,
- 'en-GB': () => `
- Send us your short stories, poetry and drama to
- <a href="mailto:lallans@hotmail.co.uk">lallans@hotmail.co.uk</a>.
- `,
- },
- 'submit-para-3': {
- sco: () => `
- We luik forrit tae haein your submeission, whither you’ve been submittin
- for years or you’re a first-time writer!
- `,
- 'en-GB': () => `
- We look forward to having your submission, whether you’ve been
- submitting for years or you’re a first-time writer!
- `,
- },
- 'sangschaw-closed': {
- sco: () => `
- This year’s Sangschaw competeition closed on the 31st o Januar 2024.
- `,
- 'en-GB': () => `
- This year’s Sangschaw competition closed on the 31st of January 2024.
- `,
- },
- news: {
- sco: () => 'Recent News',
- 'en-GB': () => 'Recent News',
- },
- 'aw-news': {
- sco: () => 'Aw news',
- 'en-GB': () => 'All news',
- },
'about-us': {
sco: () => 'Aboot us',
'en-GB': () => 'About us',
@@ -84,7 +36,7 @@ const tPage = {
`,
},
'about-us-para-3': {
- sco: () => `
+ sco: () => `
Mairfortaken, we hae annual Collogues, whaur we ingaither oor memmers
an hear talks on Scots-leid cultur an hear Sangschaw winners readin
their nain wark.
@@ -121,10 +73,6 @@ const tPage = {
sco: () => 'Aw furthsettins',
'en-GB': () => 'All publications',
},
- contact: {
- sco: () => 'Contact',
- 'en-GB': () => 'Contact',
- },
};
type Raw = typeof tPage;
diff --git a/src/i18n/translations/pages/jyne.ts b/src/i18n/translations/pages/jyne.ts
index d25db56..2ec8811 100644
--- a/src/i18n/translations/pages/jyne.ts
+++ b/src/i18n/translations/pages/jyne.ts
@@ -147,13 +147,13 @@ const tPage = {
'en-GB': () => 'Bank transfer',
},
'hou-pey-by-bank-transfer-para': {
- sco: ({ emailAddress }: { emailAddress: string }) => `
+ sco: () => `
To pay by bank transfer, please send £20 to the following bank details,
and include your name and the word 'STENT' in the reference. You may
need to shorten your name to fit in the reference. For example, 'J BLOGGS
STENT'.
`,
- 'en-GB': ({ emailAddress }: { emailAddress: string }) => `
+ 'en-GB': () => `
For tae pey by bank transfer, pleise send £20 til the follaein bank
details, and include your name and the wird 'STENT' in the reference. You
micht hae tae shorten your name for tae fit it intil the reference. For
diff --git a/src/i18n/translations/pages/lallansGallery.ts b/src/i18n/translations/pages/lallansGallery.ts
index a6be372..7979585 100644
--- a/src/i18n/translations/pages/lallansGallery.ts
+++ b/src/i18n/translations/pages/lallansGallery.ts
@@ -10,13 +10,13 @@ const tPage = {
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.
+ Lallans on the <a href="/sco/submit">Submit</a> 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.
+ submit to Lallans on the <a href="/en-GB/submit">Submit</a> page.
`,
},
};
diff --git a/src/i18n/translations/pages/submit.ts b/src/i18n/translations/pages/submit.ts
new file mode 100644
index 0000000..0f7cf0c
--- /dev/null
+++ b/src/i18n/translations/pages/submit.ts
@@ -0,0 +1,49 @@
+import type { TranslationsDictionary } from '$types/TranslationsDictionary';
+
+const tPage = {
+ title: {
+ sco: () => 'Submit',
+ 'en-GB': () => 'Submit',
+ },
+ '105-submissions-full': {
+ sco: () => `
+ Lallans 105 is steikit fu, and we canna accept ony mair submeissions. We
+ will apen submeissions again ance Lallans 105 is out.
+ `,
+ 'en-GB': () => `
+ Lallans 105 is full to the brim, and we can’t accept any more
+ submissions. We will open submissions again once Lallans 105 is out.
+ `,
+ },
+ 'submit-para-1': {
+ sco: () => `
+ We ar acceptin submeissions til Lallans 105.
+ `,
+ 'en-GB': () => `
+ We are accepting submissions to Lallans 105.
+ `,
+ },
+ 'submit-para-2': {
+ sco: () => `
+ Send us your cuttie tales, poesie and drama til
+ <a href="mailto:lallans@hotmail.co.uk">lallans@hotmail.co.uk</a>.
+ `,
+ 'en-GB': () => `
+ Send us your short stories, poetry and drama to
+ <a href="mailto:lallans@hotmail.co.uk">lallans@hotmail.co.uk</a>.
+ `,
+ },
+ 'submit-para-3': {
+ sco: () => `
+ We luik forrit tae haein your submeission, whither you’ve been submittin
+ for years or you’re a first-time writer!
+ `,
+ 'en-GB': () => `
+ We look forward to having your submission, whether you’ve been
+ submitting for years or you’re a first-time writer!
+ `,
+ },
+};
+
+type Raw = typeof tPage;
+export default tPage as TranslationsDictionary<Raw>;