diff options
| author | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2023-08-20 07:57:21 +0100 |
|---|---|---|
| committer | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2023-08-20 07:57:21 +0100 |
| commit | 869976b711d862581d1d99bf884dd166b1ecdf3b (patch) | |
| tree | 966024bf1d14ffbc36d719d51ab8d2b88b5b3f15 /src/i18n/translations/components | |
| parent | 863b292304fe130f8a91b191c3b844521ef19ac3 (diff) | |
Pulls out NewsIndex Astro component
Diffstat (limited to 'src/i18n/translations/components')
| -rw-r--r-- | src/i18n/translations/components/newsIndex.ts | 19 | ||||
| -rw-r--r-- | src/i18n/translations/components/newsPreviewLink.ts | 11 |
2 files changed, 19 insertions, 11 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>; |
