fix(compiler): remove i18n markup even if no translations (#17999)
Fixes #11042
This commit is contained in:
committed by
Jason Aden
parent
2ba3ada27f
commit
9c3386b1b7
@@ -95,6 +95,9 @@ export class CodeGenerator {
|
||||
`Unknown option for missingTranslation (${cliOptions.missingTranslation}). Use either error, warning or ignore.`);
|
||||
}
|
||||
}
|
||||
if (!transContent) {
|
||||
missingTranslation = MissingTranslationStrategy.Ignore
|
||||
}
|
||||
const {compiler: aotCompiler} = compiler.createAotCompiler(ngCompilerHost, {
|
||||
translations: transContent,
|
||||
i18nFormat: cliOptions.i18nFormat,
|
||||
|
||||
Reference in New Issue
Block a user