MCPcopy Create free account
hub / github.com/angular/angular / describeMessage

Function describeMessage

packages/localize/src/utils/src/translations.ts:149–156  ·  view source on GitHub ↗
(message: ParsedMessage)

Source from the content-addressed store, hash-verified

147}
148
149function describeMessage(message: ParsedMessage): string {
150 const meaningString = message.meaning && ` - "${message.meaning}"`;
151 const legacy =
152 message.legacyIds && message.legacyIds.length > 0
153 ? ` [${message.legacyIds.map((l) => `"${l}"`).join(', ')}]`
154 : '';
155 return `"${message.id}"${legacy} ("${message.text}"${meaningString})`;
156}

Callers 2

constructorMethod · 0.85
translateFunction · 0.85

Calls 2

mapMethod · 0.80
joinMethod · 0.65

Tested by

no test coverage detected