(
nodes: html.Node[],
implicitTags: string[],
implicitAttrs: {[k: string]: string[]},
preserveSignificantWhitespace: boolean,
)
| 26 | * Extract translatable messages from an html AST |
| 27 | */ |
| 28 | export 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 | |
| 38 | export function mergeTranslations( |
| 39 | nodes: html.Node[], |
no test coverage detected
searching dependent graphs…