Skip to content

Commit 3ec6932

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.
1 parent b43e0d0 commit 3ec6932

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

Lines changed: 1 addition & 1 deletion
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)