Skip to content

Commit

Permalink
fix(compiler-cli): adding missing format xliff for the extractor (ang…
Browse files Browse the repository at this point in the history
…ular#15386)

To generate XLF files with ng-xi18n we could use the format parameter "xlf" or "xlif". The real name is "xliff" not "xlif", so this probably was a typo. This PR adds "xliff" as can be expected
  • Loading branch information
ocombe authored and Zhicheng Wang committed Aug 11, 2017
1 parent f54ccad commit 411634c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/compiler-cli/src/extractor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export class Extractor {
const format = (formatName || 'xlf').toLowerCase();

if (format === 'xmb') return 'xmb';
if (format === 'xlf' || format === 'xlif') return 'xlf';
if (format === 'xlf' || format === 'xlif' || format === 'xliff') return 'xlf';

throw new Error('Unsupported format "${formatName}"');
}
Expand Down

0 comments on commit 411634c

Please sign in to comment.