feat(@angular-devkit/build-angular): add progress option to xi18n

Add progress option to xi18n. It is passed to the webpack builder.

Fixes #11667.
This commit is contained in:
Hans Larsen 2018-09-27 11:34:50 -04:00 committed by Hans
parent ae4dc05319
commit 7ff1e1a33e
2 changed files with 7 additions and 0 deletions

View File

@ -38,6 +38,7 @@ export interface ExtractI18nBuilderOptions {
i18nLocale: string; i18nLocale: string;
outputPath?: string; outputPath?: string;
outFile?: string; outFile?: string;
progress?: boolean;
} }
export class ExtractI18nBuilder implements Builder<ExtractI18nBuilderOptions> { export class ExtractI18nBuilder implements Builder<ExtractI18nBuilderOptions> {
@ -92,6 +93,7 @@ export class ExtractI18nBuilder implements Builder<ExtractI18nBuilderOptions> {
i18nFormat: options.i18nFormat, i18nFormat: options.i18nFormat,
i18nFile: outFile, i18nFile: outFile,
aot: true, aot: true,
progress: options.progress,
assets: [], assets: [],
scripts: [], scripts: [],
styles: [], styles: [],

View File

@ -24,6 +24,11 @@
"type": "string", "type": "string",
"description": "Specifies the source language of the application." "description": "Specifies the source language of the application."
}, },
"progress": {
"type": "boolean",
"description": "Log progress to the console.",
"default": true
},
"outputPath": { "outputPath": {
"type": "string", "type": "string",
"description": "Path where output will be placed." "description": "Path where output will be placed."