feat(ivy): updated translation const names (that include message ids) (#27185)
PR Close #27185
This commit is contained in:

committed by
Igor Minar

parent
9129f9ac9b
commit
aedc343003
@ -151,6 +151,9 @@ export interface CompilerOptions extends ts.CompilerOptions {
|
||||
i18nInFile?: string;
|
||||
// How to handle missing messages
|
||||
i18nInMissingTranslations?: 'error'|'warning'|'ignore';
|
||||
// Whether translation variable name should contain external message id
|
||||
// (used by Closure Compiler's output of `goog.getMsg` for transition period)
|
||||
i18nUseExternalIds?: boolean;
|
||||
|
||||
// Whether to remove blank text nodes from compiled templates. It is `false` by default starting
|
||||
// from Angular 6.
|
||||
|
@ -935,7 +935,8 @@ function getAotCompilerOptions(options: CompilerOptions): AotCompilerOptions {
|
||||
|
||||
return {
|
||||
locale: options.i18nInLocale,
|
||||
i18nFormat: options.i18nInFormat || options.i18nOutFormat, translations, missingTranslation,
|
||||
i18nFormat: options.i18nInFormat || options.i18nOutFormat,
|
||||
i18nUseExternalIds: options.i18nUseExternalIds, translations, missingTranslation,
|
||||
enableSummariesForJit: options.enableSummariesForJit,
|
||||
preserveWhitespaces: options.preserveWhitespaces,
|
||||
fullTemplateTypeCheck: options.fullTemplateTypeCheck,
|
||||
|
Reference in New Issue
Block a user