MCPcopy Create free account
hub / github.com/nodejs/nodejs.org / getLinkFromTranslationKey

Function getLinkFromTranslationKey

apps/site/components/withLegal.tsx:49–51  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

47 * @returns the link URL matching the translation key
48 */
49 const getLinkFromTranslationKey = (key: string) => {
50 return footerLinks.find(link => link.text.split('.').pop() === key)?.link;
51 };
52
53 const richComponents = RICH_TRANSLATION_KEYS.reduce(
54 (acc, key) => {

Callers 1

WithLegalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected