Skip to content

Commit 8f683f3

Browse files
rahulbhooteshwarclydin
authored andcommitted
feat(@ngtools/webpack): prevent build failure in case of custom locale, fixed lint errors
1 parent 0e46942 commit 8f683f3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/@ngtools/webpack/src/angular_compiler_plugin.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1066,8 +1066,9 @@ export class AngularCompilerPlugin {
10661066
locale = parentLocale;
10671067
} else {
10681068
console.log(`Unable to load the locale data file "@angular/common/locales/${locale}", ` +
1069-
`please check that "${locale}" is a valid locale id. Proceeding with default locale data registration i.e. 'en'. If needed, localeData can be registered against custom locale in application module.`);
1070-
locale = 'en';
1069+
`please check that "${locale}" is a valid locale id.
1070+
Proceeding with default locale data registration i.e. 'en'.
1071+
If needed, localeData can be registered against custom locale in application module.`);
10711072
}
10721073
}
10731074
}

0 commit comments

Comments
 (0)