diff options
Diffstat (limited to 'src/i18n/translations/components/breadcrumbs.ts')
| -rw-r--r-- | src/i18n/translations/components/breadcrumbs.ts | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/src/i18n/translations/components/breadcrumbs.ts b/src/i18n/translations/components/breadcrumbs.ts index a0af6f9..3db3f2f 100644 --- a/src/i18n/translations/components/breadcrumbs.ts +++ b/src/i18n/translations/components/breadcrumbs.ts @@ -1,4 +1,6 @@ -import type { TranslationsDictionary } from '../../../types/TranslationsDictionary'; +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 @@ -16,6 +18,24 @@ const breadcrumbsTranslations = { sco: () => 'Lallans', 'en-GB': () => 'Lallans', }, + ...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 breadcrumbsTranslations; |
