Skip to content

Commit 2ba4678

Browse files
voriadgp1130
authored andcommitted
fix(@angular-devkit/core): add i18n as valid project extension
When parsing the angular.json file, the 'i18n' key used to configure localization in a localized project should be treated as a special project extension key. This fixes the warning "Project extension with invalid name found." printed when starting/building the project. (cherry picked from commit 3ec6932)
1 parent 1cafcba commit 2ba4678

File tree

1 file changed

+1
-1
lines changed
  • packages/angular_devkit/core/src/workspace/json

1 file changed

+1
-1
lines changed

packages/angular_devkit/core/src/workspace/json/reader.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export async function readJsonWorkspace(
7474

7575
const specialWorkspaceExtensions = ['cli', 'defaultProject', 'newProjectRoot', 'schematics'];
7676

77-
const specialProjectExtensions = ['cli', 'schematics', 'projectType'];
77+
const specialProjectExtensions = ['cli', 'schematics', 'projectType', 'i18n'];
7878

7979
function parseWorkspace(workspaceNode: Node, context: ParserContext): WorkspaceDefinition {
8080
const jsonMetadata = context.metadata;

0 commit comments

Comments
 (0)