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

Function getFormattedMessage

apps/site/hooks/useSiteNavigation.ts:43–44  ·  view source on GitHub ↗
(label: IntlMessageKeys, key: string)

Source from the content-addressed store, hash-verified

41
42 const mapNavigationEntries = (entries: Navigation, context: Context = {}) => {
43 const getFormattedMessage = (label: IntlMessageKeys, key: string) =>
44 t.rich(label, context[key] || {}) as FormattedMessage;
45
46 return Object.entries(entries).map(
47 ([key, { label, link, items, target }]): [

Callers 1

mapNavigationEntriesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected