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

Method emitXi18n

packages/compiler-cli/src/ngtsc/program.ts:259–276  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

257 }
258
259 private emitXi18n(): void {
260 const ctx = new MessageBundle(
261 new HtmlParser(),
262 [],
263 {},
264 this.options.i18nOutLocale ?? null,
265 this.options.i18nPreserveWhitespaceForLegacyExtraction,
266 );
267 this.compiler.xi18n(ctx);
268 i18nExtract(
269 this.options.i18nOutFormat ?? null,
270 this.options.i18nOutFile ?? null,
271 this.host,
272 this.options,
273 ctx,
274 resolve,
275 );
276 }
277
278 emit<CbEmitRes extends ts.EmitResult>(
279 opts?: api.EmitOptions<CbEmitRes> | undefined,

Callers 1

emitMethod · 0.95

Calls 2

i18nExtractFunction · 0.90
xi18nMethod · 0.65

Tested by

no test coverage detected