feat(compiler-cli): add param to set MissingTranslationStrategy on ngc (#15987)
This commit adds a new parameter to ngc named `missingTranslation` to set the MissingTranslationStrategy for AoT, it takes the value `error`, `warning` or `ignore`. Fixes #15808 PR Close #15987
This commit is contained in:

committed by
Miško Hevery

parent
3f46645f5f
commit
6e2abcd5fc
@ -31,12 +31,20 @@ export class NgcCliOptions extends CliOptions {
|
||||
public i18nFormat: string;
|
||||
public i18nFile: string;
|
||||
public locale: string;
|
||||
public missingTranslation: string;
|
||||
|
||||
constructor({i18nFormat = null, i18nFile = null, locale = null, basePath = null}:
|
||||
{i18nFormat?: string, i18nFile?: string, locale?: string, basePath?: string}) {
|
||||
constructor({i18nFormat = null, i18nFile = null, locale = null, missingTranslation = null,
|
||||
basePath = null}: {
|
||||
i18nFormat?: string,
|
||||
i18nFile?: string,
|
||||
locale?: string,
|
||||
missingTranslation?: string,
|
||||
basePath?: string
|
||||
}) {
|
||||
super({basePath: basePath});
|
||||
this.i18nFormat = i18nFormat;
|
||||
this.i18nFile = i18nFile;
|
||||
this.locale = locale;
|
||||
this.missingTranslation = missingTranslation;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user