Skip to content

Commit

Permalink
fix(@angular-devkit/core): add i18n as valid project extension
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
voria authored and dgp1130 committed Jul 14, 2022
1 parent 6b406d5 commit 4048858
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/angular_devkit/core/src/workspace/json/reader.ts
Expand Up @@ -74,7 +74,7 @@ export async function readJsonWorkspace(

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

const specialProjectExtensions = ['cli', 'schematics', 'projectType'];
const specialProjectExtensions = ['cli', 'schematics', 'projectType', 'i18n'];

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

0 comments on commit 4048858

Please sign in to comment.