(html: string, url: string, locale: string | null = null)
| 76 | }); |
| 77 | |
| 78 | function toXmb(html: string, url: string, locale: string | null = null): string { |
| 79 | const catalog = new MessageBundle(new HtmlParser(), [], {}, locale); |
| 80 | const serializer = new Xmb(); |
| 81 | |
| 82 | catalog.updateFromTemplate(html, url); |
| 83 | |
| 84 | return catalog.write(serializer); |
| 85 | } |
no test coverage detected