fix(compiler-cli): adding missing format xliff for the extractor (#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
This commit is contained in:
Olivier Combe 2017-03-22 23:12:02 +01:00 committed by Igor Minar
parent 64285a2171
commit a50d79df47
1 changed files with 1 additions and 1 deletions

View File

@ -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}"');
}