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:
Olivier Combe
2017-04-13 09:17:37 +02:00
committed by Miško Hevery
parent 3f46645f5f
commit 6e2abcd5fc
5 changed files with 40 additions and 12 deletions

View File

@ -6,10 +6,13 @@
* found in the LICENSE file at https://angular.io/license
*/
import {MissingTranslationStrategy} from '@angular/core';
export interface AotCompilerOptions {
locale?: string;
i18nFormat?: string;
translations?: string;
missingTranslation?: MissingTranslationStrategy;
enableLegacyTemplate?: boolean;
/** preamble for all generated source files */
genFilePreamble?: string;