summaryrefslogtreecommitdiff
path: root/src/i18n/translations/components/breadcrumbs.ts
blob: 8e3d027b6496211167103fdfb48d3a46b5a04e22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
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',
  },
  '/jyne/': {
    sco: () => 'Jyne',
    'en-GB': () => 'Join',
  },
  '/jyne/paypal/': {
    sco: () => 'PayPal',
    'en-GB': () => 'PayPal',
  },
  '/jyne/paypal/individual-uk/': {
    sco: () => 'Individual (UK)',
    'en-GB': () => 'Individual (UK)',
  },
  '/jyne/paypal/individual-non-uk/': {
    sco: () => 'Individual (non-UK)',
    'en-GB': () => 'Individual (non-UK)',
  },
  '/jyne/paypal/institution-uk/': {
    sco: () => 'Institutional (UK)',
    'en-GB': () => 'Institutional (UK)',
  },
  '/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>;