docs: rename ng xi18n to ng extract-i18n (#39337)

In Angular CLI version 11, xi18n has been changed from `ng xi18n` to `ng extract-i18n`.

PR Close #39337
This commit is contained in:
Alan Agius
2020-10-21 08:50:48 +02:00
committed by Joey Perrott
parent e3d2f46bbd
commit dd0ba3f4ab
7 changed files with 21 additions and 26 deletions
@@ -41,7 +41,7 @@ const extract = (from: string, regex: any, transformFn: (match: any[], state: Se
};
// verify that we extracted all the necessary translations
// and their ids match the ones extracted via 'ng xi18n'
// and their ids match the ones extracted via 'ng extract-i18n'
const verifyTranslationIds =
(source: string, output: string, exceptions = {},
interpolationConfig: InterpolationConfig = DEFAULT_INTERPOLATION_CONFIG) => {
@@ -2982,7 +2982,8 @@ describe('i18n support in the template compiler', () => {
`;
const exceptions = {
'3052001905251380936': 'Wrapper message generated by "ng xi18n" around ICU: " {$ICU} "'
'3052001905251380936':
'Wrapper message generated by "ng extract-i18n" around ICU: " {$ICU} "'
};
verify(input, output, {exceptions});
});