blob: 36e96b010b2150ddb1984dd862fbc034f19984d0 (
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
|
import tSite from '../site';
import type { TranslationsDictionary } from '$types/TranslationsDictionary';
import type Date from '$types/Date';
import { defaultLocale } from '$i18n/locales';
const tScotsoun = {
'cover-artist': {
sco: ({ coverArtist }: { coverArtist: string }) => `Cover airtist: ${coverArtist}.`,
'en-GB': ({ coverArtist }: { coverArtist: string }) => `Cover airtist: ${coverArtist}.`,
},
'release-date': {
sco: ({ releaseDate }: { releaseDate: Date }) => {
const tDate = tSite['long-date']['sco'];
return `Releast: ${tDate({ date: releaseDate })}`;
},
'en-GB': ({ releaseDate }: { releaseDate: Date }) => {
const tDate = tSite['long-date']['en-GB'] ?? tSite['long-date'][defaultLocale];
return `Released: ${tDate({ date: releaseDate })}`;
},
},
};
type Raw = typeof tScotsoun;
export default tScotsoun as TranslationsDictionary<Raw>;
|