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

Function fakeNoTranslate

packages/compiler/test/i18n/extractor_merger_spec.ts:684–702  ·  view source on GitHub ↗
(
  content: string,
  implicitTags: string[] = [],
  implicitAttrs: {[k: string]: string[]} = {},
)

Source from the content-addressed store, hash-verified

682}
683
684function fakeNoTranslate(
685 content: string,
686 implicitTags: string[] = [],
687 implicitAttrs: {[k: string]: string[]} = {},
688): string {
689 const htmlNodes: html.Node[] = parseHtml(content);
690 const translationBundle = new TranslationBundle(
691 {},
692 null,
693 digest,
694 undefined,
695 MissingTranslationStrategy.Ignore,
696 console,
697 );
698 const output = mergeTranslations(htmlNodes, translationBundle, implicitTags, implicitAttrs);
699 expect(output.errors).toEqual([]);
700
701 return serializeHtmlNodes(output.rootNodes).join('');
702}
703
704function extract(
705 html: string,

Callers 1

Calls 3

mergeTranslationsFunction · 0.90
parseHtmlFunction · 0.70
joinMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…