MCPcopy Index your code
hub / github.com/angular/angular / _humanizeMessages

Function _humanizeMessages

packages/compiler/test/i18n/i18n_parser_spec.ts:375–384  ·  view source on GitHub ↗
(
  html: string,
  implicitTags: string[] = [],
  implicitAttrs: {[k: string]: string[]} = {},
  preserveSignificantWhitespace = true,
)

Source from the content-addressed store, hash-verified

373});
374
375export function _humanizeMessages(
376 html: string,
377 implicitTags: string[] = [],
378 implicitAttrs: {[k: string]: string[]} = {},
379 preserveSignificantWhitespace = true,
380): [string[], string, string, string][] {
381 return _extractMessages(html, implicitTags, implicitAttrs, preserveSignificantWhitespace).map(
382 (message) => [serializeNodes(message.nodes), message.meaning, message.description, message.id],
383 ) as [string[], string, string, string][];
384}
385
386function _humanizePlaceholders(
387 html: string,

Callers 1

Calls 3

serializeNodesFunction · 0.90
_extractMessagesFunction · 0.85
mapMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…