summaryrefslogtreecommitdiff
path: root/src/i18n
diff options
context:
space:
mode:
authorJoe Carstairs <jcarstairs@scottlogic.com>2024-01-12 16:07:19 +0000
committerJoe Carstairs <jcarstairs@scottlogic.com>2024-01-12 16:07:19 +0000
commit23e63a1b391c90203f9cde8c939923a0d21ed1c3 (patch)
tree9c53a7d740c2b001e49dacaf0bc8264fef6cbf59 /src/i18n
parent2bf64117190300caac82594cb7818dbc7f67af67 (diff)
Removes navlinks from navbar
Diffstat (limited to 'src/i18n')
-rw-r--r--src/i18n/translations/components/breadcrumbs.ts50
1 files changed, 0 insertions, 50 deletions
diff --git a/src/i18n/translations/components/breadcrumbs.ts b/src/i18n/translations/components/breadcrumbs.ts
deleted file mode 100644
index 5aeff0e..0000000
--- a/src/i18n/translations/components/breadcrumbs.ts
+++ /dev/null
@@ -1,50 +0,0 @@
-import { getLallansIssue } from '$data/lallans';
-import { getScotsoun } from '$data/scotsoun';
-import type { TranslationsDictionary } from '$types/TranslationsDictionary';
-
-// This maun be kept up til date bi haund. There is
-// nae compile-time check that aw routes hae been
-// translatit.
-const tBreadcrumbs = {
- '/': {
- sco: () => 'Hame',
- 'en-GB': () => 'Home',
- },
- '/furthsettins/': {
- sco: () => 'Furthsettins',
- 'en-GB': () => 'Publications',
- },
- '/furthsettins/lallans/': {
- sco: () => 'Lallans',
- 'en-GB': () => 'Lallans',
- },
- '/furthsettins/scotsoun/': {
- sco: () => 'Scotsoun',
- 'en-GB': () => 'Scotsoun',
- },
- '/news/': {
- sco: () => 'News',
- 'en-GB': () => 'News',
- },
- ...Object.fromEntries(
- Object.keys(getLallansIssue).map((lallansIssueNumber) => [
- `/furthsettins/lallans/${lallansIssueNumber}/`,
- {
- sco: () => `Lallans ${lallansIssueNumber}`,
- 'en-GB': () => `Lallans ${lallansIssueNumber}`,
- },
- ])
- ),
- ...Object.fromEntries(
- Object.keys(getScotsoun).map((scotsounId) => [
- `/furthsettins/scotsoun/${scotsounId}/`,
- {
- sco: () => `Scotsoun ${scotsounId}`,
- 'en-GB': () => `Scotsoun ${scotsounId}`,
- },
- ])
- ),
-};
-
-type Raw = typeof tBreadcrumbs;
-export default tBreadcrumbs as TranslationsDictionary<Raw>;