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

Function mergeTranslations

packages/compiler/src/i18n/extractor_merger.ts:38–46  ·  view source on GitHub ↗
(
  nodes: html.Node[],
  translations: TranslationBundle,
  implicitTags: string[],
  implicitAttrs: {[k: string]: string[]},
)

Source from the content-addressed store, hash-verified

36}
37
38export function mergeTranslations(
39 nodes: html.Node[],
40 translations: TranslationBundle,
41 implicitTags: string[],
42 implicitAttrs: {[k: string]: string[]},
43): ParseTreeResult {
44 const visitor = new _Visitor(implicitTags, implicitAttrs);
45 return visitor.merge(nodes, translations);
46}
47
48export class ExtractionResult {
49 constructor(

Callers 4

fakeTranslateFunction · 0.90
fakeNoTranslateFunction · 0.90
parseMethod · 0.90

Calls 1

mergeMethod · 0.95

Tested by

no test coverage detected