Skip to content

Commit c4ca5fe

Browse files
cexbrayatclydin
authored andcommitted
fix(@angular-devkit/build-angular): resolve i18n outFile with normalized format
IF someone uses the `extract-i18n` with the deprecated `--i18n-format` option, then `options.format` is undefined and the `outFile` defaults to `messages.xlf`, whereas the content will be using the proper format. (cherry picked from commit 748c1f8)
1 parent 10b77ae commit c4ca5fe

File tree

1 file changed

+1
-1
lines changed
  • packages/angular_devkit/build_angular/src/extract-i18n

1 file changed

+1
-1
lines changed

packages/angular_devkit/build_angular/src/extract-i18n/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ export async function execute(
147147
const format = normalizeFormatOption(options);
148148

149149
// We need to determine the outFile name so that AngularCompiler can retrieve it.
150-
let outFile = options.outFile || getI18nOutfile(options.format);
150+
let outFile = options.outFile || getI18nOutfile(format);
151151
if (options.outputPath) {
152152
// AngularCompilerPlugin doesn't support genDir so we have to adjust outFile instead.
153153
outFile = path.join(options.outputPath, outFile);

0 commit comments

Comments
 (0)