From 82a791223cb1d1faec2b788acf1df3df983a0538 Mon Sep 17 00:00:00 2001 From: Olivier Combe Date: Thu, 25 Jan 2018 09:52:26 +0100 Subject: [PATCH] docs: update i18n guide for projects that don't use the cli (#21767) PR Close #21767 --- aio/content/guide/i18n.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/aio/content/guide/i18n.md b/aio/content/guide/i18n.md index a522a9436c..2915bf727a 100644 --- a/aio/content/guide/i18n.md +++ b/aio/content/guide/i18n.md @@ -402,9 +402,12 @@ By default, the tool generates a translation file named `messages.xlf` in the
-If you don't use the CLI, you can use the `ng-xi18n` tool directly from the `@angular/compiler-cli` -package, or you can manually use the CLI Webpack plugin `ExtractI18nPlugin` from the -`@ngtools/webpack` package. +If you don't use the CLI, you have two options: +* You can use the `ng-xi18n` tool directly from the `@angular/compiler-cli` package. +For more information, see [i18n in the CLI documentation](https://github.com/angular/angular-cli/wiki/xi18n). +* You can use the CLI Webpack plugin `AngularCompilerPlugin` from the `@ngtools/webpack` package. +Set the parameters `i18nOutFile` and `i18nOutFormat` to trigger the extraction. +For more information, see the [Angular Ahead-of-Time Webpack Plugin documentation](https://github.com/angular/angular-cli/tree/master/packages/%40ngtools/webpack).