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

Function extractMessages

packages/compiler/src/i18n/extractor_merger.ts:28–36  ·  view source on GitHub ↗
(
  nodes: html.Node[],
  implicitTags: string[],
  implicitAttrs: {[k: string]: string[]},
  preserveSignificantWhitespace: boolean,
)

Source from the content-addressed store, hash-verified

26 * Extract translatable messages from an html AST
27 */
28export function extractMessages(
29 nodes: html.Node[],
30 implicitTags: string[],
31 implicitAttrs: {[k: string]: string[]},
32 preserveSignificantWhitespace: boolean,
33): ExtractionResult {
34 const visitor = new _Visitor(implicitTags, implicitAttrs, preserveSignificantWhitespace);
35 return visitor.extract(nodes);
36}
37
38export function mergeTranslations(
39 nodes: html.Node[],

Callers 6

_extractMessagesFunction · 0.90
fakeTranslateFunction · 0.90
extractFunction · 0.90
extractErrorsFunction · 0.90
updateFromTemplateMethod · 0.90

Calls 1

extractMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…