Commit b100c71 1 parent 3c91721 commit b100c71 Copy full SHA for b100c71
File tree 2 files changed +3
-1
lines changed
packages/angular/build/src
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(
94
94
// eslint-disable-next-line @typescript-eslint/no-explicit-any
95
95
checkFileSystem as any ,
96
96
extractionResult . messages ,
97
- 'warning' ,
97
+ normalizedOptions . i18nOptions . i18nDuplicateTranslation || 'warning' ,
98
98
// eslint-disable-next-line @typescript-eslint/no-explicit-any
99
99
extractionResult . basePath as any ,
100
100
) ;
Original file line number Diff line number Diff line change 6
6
* found in the LICENSE file at https://angular.dev/license
7
7
*/
8
8
9
+ import { DiagnosticHandlingStrategy } from '@angular/localize/tools' ;
9
10
import path from 'node:path' ;
10
11
import type { TranslationLoader } from './load-translations' ;
11
12
@@ -28,6 +29,7 @@ export interface I18nOptions {
28
29
flatOutput ?: boolean ;
29
30
readonly shouldInline : boolean ;
30
31
hasDefinedSourceLocale ?: boolean ;
32
+ i18nDuplicateTranslation ?: DiagnosticHandlingStrategy ;
31
33
}
32
34
33
35
function normalizeTranslationFileOption (
You can’t perform that action at this time.
0 commit comments