summaryrefslogtreecommitdiff
path: root/src/i18n
diff options
context:
space:
mode:
authorJoe Carstairs <65492573+Sycamost@users.noreply.github.com>2023-08-20 07:57:21 +0100
committerJoe Carstairs <65492573+Sycamost@users.noreply.github.com>2023-08-20 07:57:21 +0100
commit869976b711d862581d1d99bf884dd166b1ecdf3b (patch)
tree966024bf1d14ffbc36d719d51ab8d2b88b5b3f15 /src/i18n
parent863b292304fe130f8a91b191c3b844521ef19ac3 (diff)
Pulls out NewsIndex Astro component
Diffstat (limited to 'src/i18n')
-rw-r--r--src/i18n/translations/components/newsIndex.ts19
-rw-r--r--src/i18n/translations/components/newsPreviewLink.ts11
-rw-r--r--src/i18n/translations/pages/news.ts4
3 files changed, 19 insertions, 15 deletions
diff --git a/src/i18n/translations/components/newsIndex.ts b/src/i18n/translations/components/newsIndex.ts
new file mode 100644
index 0000000..0511b88
--- /dev/null
+++ b/src/i18n/translations/components/newsIndex.ts
@@ -0,0 +1,19 @@
+import type { TranslationsDictionary } from '$types/TranslationsDictionary';
+
+const tComponent = {
+ title: {
+ sco: () => 'News',
+ 'en-GB': () => 'News',
+ },
+ 'no-news': {
+ sco: () => 'The ar nae news at the present time. Caw again later!',
+ 'en-GB': () => 'There is no news at the current time. Check in again later!',
+ },
+ 'read-article': {
+ sco: () => 'Read fu airticle',
+ 'en-GB': () => 'Read full article',
+ },
+};
+
+type Raw = typeof tComponent;
+export default tComponent as TranslationsDictionary<Raw>;
diff --git a/src/i18n/translations/components/newsPreviewLink.ts b/src/i18n/translations/components/newsPreviewLink.ts
deleted file mode 100644
index 98b2dd9..0000000
--- a/src/i18n/translations/components/newsPreviewLink.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-import type { TranslationsDictionary } from '$types/TranslationsDictionary';
-
-const tNewsPreviewLink = {
- 'read-article': {
- sco: () => 'Read fu airticle',
- 'en-GB': () => 'Read full article',
- },
-};
-
-type Raw = typeof tNewsPreviewLink;
-export default tNewsPreviewLink as TranslationsDictionary<Raw>;
diff --git a/src/i18n/translations/pages/news.ts b/src/i18n/translations/pages/news.ts
index 22517d1..a794c6f 100644
--- a/src/i18n/translations/pages/news.ts
+++ b/src/i18n/translations/pages/news.ts
@@ -5,10 +5,6 @@ const tPage = {
sco: () => 'News',
'en-GB': () => 'News',
},
- 'no-news': {
- sco: () => 'The ar nae news at the present time. Caw again later!',
- 'en-GB': () => 'There is no news at the current time. Check in again later!',
- },
};
type Raw = typeof tPage;