blob: 2fc516bcb5099430775591f318945459c7da728e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
export default {
contentDependencies: ['linkThing'],
extraDependencies: ['language'],
relations: (relation, listing) =>
({link: relation('linkThing', 'localized.listing', listing)}),
data: (listing) =>
({stringsKey: listing.stringsKey}),
generate: (data, relations, {language}) =>
relations.link
.slot('content', language.$(`listingPage.${data.stringsKey}.title`)),
};
|