MCPcopy Index your code
hub / github.com/angular/angular / i18nGetExtension

Function i18nGetExtension

packages/compiler-cli/src/transformers/i18n.ts:15–30  ·  view source on GitHub ↗
(formatName: string)

Source from the content-addressed store, hash-verified

13import {CompilerOptions} from './api';
14
15export function i18nGetExtension(formatName: string): string {
16 const format = formatName.toLowerCase();
17
18 switch (format) {
19 case 'xmb':
20 return 'xmb';
21 case 'xlf':
22 case 'xlif':
23 case 'xliff':
24 case 'xlf2':
25 case 'xliff2':
26 return 'xlf';
27 }
28
29 throw new Error(`Unsupported format "${formatName}"`);
30}
31
32export function i18nExtract(
33 formatName: string | null,

Callers 1

i18nExtractFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…