diff options
-rw-r--r-- | src/content/dependencies/linkListing.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/content/dependencies/linkListing.js b/src/content/dependencies/linkListing.js index f27d93ac..2fc516bc 100644 --- a/src/content/dependencies/linkListing.js +++ b/src/content/dependencies/linkListing.js @@ -1,8 +1,14 @@ export default { contentDependencies: ['linkThing'], + extraDependencies: ['language'], relations: (relation, listing) => ({link: relation('linkThing', 'localized.listing', listing)}), - generate: (relations) => relations.link, + data: (listing) => + ({stringsKey: listing.stringsKey}), + + generate: (data, relations, {language}) => + relations.link + .slot('content', language.$(`listingPage.${data.stringsKey}.title`)), }; |