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
|
import type Locale from '../../types/Locale';
import type { TranslationsDictionary } from '../../types/TranslationsDictionary';
const siteTranslations = {
title: {
sco: () => 'Scots Leid Associe',
'en-GB': () => 'Scots Language Society',
},
description: {
sco: () => 'The wabsteid o the Scots Leid Associe',
'en-GB': () => 'The website of the Scots Language Society',
},
lallans: {
sco: () => 'Lallans',
'en-GB': () => 'Lallans',
},
by: {
sco: () => 'bi',
'en-GB': () => 'by',
},
locale: {
sco: ({ locale }: { locale: Locale }) => {
switch (locale) {
case 'sco':
return 'Scots';
case 'en-GB':
return 'Inglis';
}
},
'en-GB': ({ locale }: { locale: Locale }) => {
switch (locale) {
case 'sco':
return 'Scots';
case 'en-GB':
return 'English';
}
},
},
};
type Raw = typeof siteTranslations;
export default siteTranslations as TranslationsDictionary<Raw>;
|