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

Function toXmb

packages/compiler/test/i18n/serializers/xmb_spec.ts:78–85  ·  view source on GitHub ↗
(html: string, url: string, locale: string | null = null)

Source from the content-addressed store, hash-verified

76});
77
78function 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}

Callers 1

xmb_spec.tsFile · 0.85

Calls 2

updateFromTemplateMethod · 0.95
writeMethod · 0.95

Tested by

no test coverage detected