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

View File

@ -11,13 +11,19 @@ export class CliOptions {
}
export class I18nExtractionCliOptions extends CliOptions {
public i18nFormat: string;
public locale: string;
i18nFormat: string|null;
locale: string|null;
outFile: string|null;
constructor({i18nFormat = null, locale = null}: {i18nFormat?: string, locale: string|null}) {
constructor({i18nFormat = null, locale = null, outFile = null}: {
i18nFormat?: string,
locale?: string,
outFile?: string,
}) {
super({});
this.i18nFormat = i18nFormat;
this.locale = locale;
this.outFile = outFile;
}
}