Repository navigation
docs: rename ng xi18n to ng extract-i18n - #39337
alan-agius4 wants to merge 3 commits into
Conversation
petebacondarwin
left a comment
There was a problem hiding this comment.
Also need to change this one:
|
@petebacondarwin the above command will need to be changed in the future, the current CLI on npm doesn't contain the new command name. |
petebacondarwin
left a comment
There was a problem hiding this comment.
A couple of fixes worth doing in this PR. I think.
Thanks for updating the docs etc @alan-agius4
|
@petebacondarwin pushed |
In Angular CLI version 11, xi18n has been changed from `ng xi18n` to `ng extract-i18n`.
|
@alan-agius4 @petebacondarwin I was wondering if there is a chance that we may need to add more i18n-related scripts to CLI? If I remember correctly Pete mentioned a migration tool/script to convert legacy message ids to new format (we don't have it, but may consider adding it in the future). If we plan to add more scripts, make be we can take that into account and format the command like this: or What do you think? May be we already have similar APIs in CLI? Thank you. |
|
@AndrewKushnir, initially we were going for When it comes to migration tool, this to me sounds like it should fall under That being said, at the moment we do have a sub-command pattern in the CLI like: ng generate component
ng generate app-shellBut then again the infra-structure currently only works for the In general if a command will not be used frequently on can opt to use Example: The above is how a server bundle is build because there is no command to build a server application like ( That being said most ng commands can be configured and "mapped" by the users. Example, a user can choose that This also means, that the users can change the mapping of |
AndrewKushnir
left a comment
There was a problem hiding this comment.
Thanks for additional clarification @alan-agius4 👍
mhevery
left a comment
There was a problem hiding this comment.
reviewed-for: global-approvers
|
Caretaker: I don't think this requires a g3 pre-submit. Feel free to run it if you think otherwise. Thanks. |
In Angular CLI version 11, xi18n has been changed from `ng xi18n` to `ng extract-i18n`. PR Close #39337
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
In Angular CLI version 11, xi18n has been changed from
ng xi18ntong extract-i18n.See: angular/angular-cli#19132