File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
packages/angular/build/src Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ export async function execute(
9494 // eslint-disable-next-line @typescript-eslint/no-explicit-any
9595 checkFileSystem as any ,
9696 extractionResult . messages ,
97- 'warning' ,
97+ normalizedOptions . i18nOptions . i18nDuplicateTranslation || 'warning' ,
9898 // eslint-disable-next-line @typescript-eslint/no-explicit-any
9999 extractionResult . basePath as any ,
100100 ) ;
Original file line number Diff line number Diff line change 66 * found in the LICENSE file at https://angular.dev/license
77 */
88
9+ import { DiagnosticHandlingStrategy } from '@angular/localize/tools' ;
910import path from 'node:path' ;
1011import type { TranslationLoader } from './load-translations' ;
1112
@@ -28,6 +29,7 @@ export interface I18nOptions {
2829 flatOutput ?: boolean ;
2930 readonly shouldInline : boolean ;
3031 hasDefinedSourceLocale ?: boolean ;
32+ i18nDuplicateTranslation ?: DiagnosticHandlingStrategy ;
3133}
3234
3335function normalizeTranslationFileOption (
You can’t perform that action at this time.
0 commit comments