Skip to content

Commit

Permalink
fix(@angular/build): provide extract-i18n does not respect
Browse files Browse the repository at this point in the history
`i18nDuplicateTranslation` config value (#29179)

This fixes an issue where the config was not passed.

Closes #23635
  • Loading branch information
Algoritm211 authored Mar 5, 2025
1 parent 3c91721 commit b100c71
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export async function execute(
// eslint-disable-next-line @typescript-eslint/no-explicit-any
checkFileSystem as any,
extractionResult.messages,
'warning',
normalizedOptions.i18nOptions.i18nDuplicateTranslation || 'warning',
// eslint-disable-next-line @typescript-eslint/no-explicit-any
extractionResult.basePath as any,
);
Expand Down
2 changes: 2 additions & 0 deletions packages/angular/build/src/utils/i18n-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* found in the LICENSE file at https://angular.dev/license
*/

import { DiagnosticHandlingStrategy } from '@angular/localize/tools';
import path from 'node:path';
import type { TranslationLoader } from './load-translations';

Expand All @@ -28,6 +29,7 @@ export interface I18nOptions {
flatOutput?: boolean;
readonly shouldInline: boolean;
hasDefinedSourceLocale?: boolean;
i18nDuplicateTranslation?: DiagnosticHandlingStrategy;
}

function normalizeTranslationFileOption(
Expand Down

0 comments on commit b100c71

Please sign in to comment.