MCPcopy
hub / github.com/angular/angular / serializeTranslations

Function serializeTranslations

packages/compiler/test/i18n/integration_common.ts:204–208  ·  view source on GitHub ↗
(html: string, serializer: Serializer)

Source from the content-addressed store, hash-verified

202}
203
204export function serializeTranslations(html: string, serializer: Serializer) {
205 const catalog = new MessageBundle(new HtmlParser(), [], {});
206 catalog.updateFromTemplate(html, 'file.ts');
207 return catalog.write(serializer);
208}

Calls 2

updateFromTemplateMethod · 0.95
writeMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…