(
content: string,
implicitTags: string[] = [],
implicitAttrs: {[k: string]: string[]} = {},
)
| 682 | } |
| 683 | |
| 684 | function 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 | |
| 704 | function extract( |
| 705 | html: string, |
no test coverage detected
searching dependent graphs…