mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-25 08:41:39 +08:00
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:
parent
ae4dc05319
commit
7ff1e1a33e
@ -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: [],
|
||||||
|
@ -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."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user