Skip to content

Commit b69ca3a

Browse files
committed
refactor(@angular/cli): remove deprecated command aliases for extract-i18n.
BREAKING CHANGE: Deprecated `ng x18n` and `ng i18n-extract` commands have been removed in favor of `ng extract-i18n`.
1 parent 0301895 commit b69ca3a

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

packages/angular/cli/commands/extract-i18n-impl.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,6 @@ export class ExtractI18nCommand extends ArchitectCommand<ExtractI18nCommandSchem
2424
return 1;
2525
}
2626

27-
const commandName = process.argv[2];
28-
if (['xi18n', 'i18n-extract'].includes(commandName)) {
29-
this.logger.warn(
30-
`Warning: "ng ${commandName}" has been deprecated and will be removed in a future major version. ` +
31-
'Please use "ng extract-i18n" instead.',
32-
);
33-
}
34-
3527
return this.runArchitectTarget(options);
3628
}
3729
}

packages/angular/cli/commands/extract-i18n.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
"$id": "ng-cli://commands/extract-i18n.json",
44
"description": "Extracts i18n messages from source code.",
55
"$longDescription": "",
6-
7-
"$aliases": ["i18n-extract", "xi18n"],
86
"$scope": "in",
97
"$type": "architect",
108
"$impl": "./extract-i18n-impl#ExtractI18nCommand",

0 commit comments

Comments
 (0)