2018-10-18 14:08:09 -07:00

68 lines
1.2 KiB
Markdown

<!-- Links in /docs/documentation should NOT have `.md` at the end, because they end up in our wiki at release. -->
**Documentation below is for CLI version 6. For version 7 see [here](https://angular.io/cli/xi18n)**.
# ng xi18n
## Overview
`ng xi18n` Extracts i18n messages from the templates.
```bash
ng xi18n [project]
```
## Options
<details>
<summary>configuration</summary>
<p>
<code>--configuration</code> (alias: <code>-c</code>)
</p>
<p>
Specify the configuration to use.
</p>
</details>
<details>
<summary>browser-target</summary>
<p>
<code>--browser-target</code>
</p>
<p>
Target to extract from.
</p>
</details>
<details>
<summary>i18n-format</summary>
<p>
<code>--i18n-format</code>
</p>
<p>
Output format for the generated file.
</p>
</details>
<details>
<summary>i18n-locale</summary>
<p>
<code>--i18n-locale</code>
</p>
<p>
Specifies the source language of the application.
</p>
</details>
<details>
<summary>output-path</summary>
<p>
<code>--output-path</code>
</p>
<p>
Path where output will be placed.
</p>
</details>
<details>
<summary>out-file</summary>
<p>
<code>--out-file</code>
</p>
<p>
Name of the file to output.
</p>
</details>