feat(compiler-cli): add an outFile option to ng-xi18n

Fixes #11416
Closes #14508
Closes #14657
This commit is contained in:
Marc Laval
2017-02-15 18:50:03 +01:00
committed by Igor Minar
parent 234f05996c
commit 39f56fafdd
7 changed files with 18 additions and 9 deletions
@@ -62,6 +62,7 @@ export interface NgTools_InternalApi_NG2_ExtractI18n_Options {
readResource: (fileName: string) => Promise<string>;
// Every new property under this line should be optional.
locale?: string;
outFile?: string;
}
/**
@@ -147,6 +148,6 @@ export class NgTools_InternalApi_NG_2 {
const extractor = Extractor.create(
options.angularCompilerOptions, options.program, options.host, locale, hostContext);
return extractor.extract(options.i18nFormat);
return extractor.extract(options.i18nFormat, options.outFile || null);
}
}