blob: d5506e60b34229accfa3d006639d87fc1a035e90 (
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
|
// Not to be confused with "html.Stationery".
export default {
contentDependencies: ['linkTemplate'],
extraDependencies: ['language'],
relations(relation) {
return {
linkTemplate: relation('linkTemplate'),
};
},
data(pathKey, stringKey) {
return {pathKey, stringKey};
},
generate(data, relations, {language}) {
return relations.linkTemplate
.slots({
path: [data.pathKey],
content: language.formatString(data.stringKey),
});
}
}
|