Skip to content

Commit

Permalink
refactor(@angular/cli): remove deprecated command aliases for `extrac…
Browse files Browse the repository at this point in the history
…t-i18n`.

BREAKING CHANGE:

Deprecated `ng x18n` and `ng i18n-extract` commands have been removed in favor of `ng extract-i18n`.
  • Loading branch information
alan-agius4 committed Feb 11, 2022
1 parent 0301895 commit b69ca3a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
8 changes: 0 additions & 8 deletions packages/angular/cli/commands/extract-i18n-impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,6 @@ export class ExtractI18nCommand extends ArchitectCommand<ExtractI18nCommandSchem
return 1;
}

const commandName = process.argv[2];
if (['xi18n', 'i18n-extract'].includes(commandName)) {
this.logger.warn(
`Warning: "ng ${commandName}" has been deprecated and will be removed in a future major version. ` +
'Please use "ng extract-i18n" instead.',
);
}

return this.runArchitectTarget(options);
}
}
2 changes: 0 additions & 2 deletions packages/angular/cli/commands/extract-i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
"$id": "ng-cli://commands/extract-i18n.json",
"description": "Extracts i18n messages from source code.",
"$longDescription": "",

"$aliases": ["i18n-extract", "xi18n"],
"$scope": "in",
"$type": "architect",
"$impl": "./extract-i18n-impl#ExtractI18nCommand",
Expand Down

0 comments on commit b69ca3a

Please sign in to comment.