# Split Schematic

This schematic splits a merged translation file back into individual scope translation files, based on the project's translation configuration.

***

## Command

{% tabs %}
{% tab title="Angular CLI" %}

```bash
pnpm add @jsverse/transloco-schematics
ng generate @jsverse/transloco-schematics:split
```

{% endtab %}

{% tab title="Nx 🐋" %}

```bash
pnpm add @jsverse/transloco-schematics
nx g @jsverse/transloco-schematics:split
```

{% endtab %}
{% endtabs %}

***

### Options

<table data-header-hidden><thead><tr><th></th><th width="100"></th><th></th><th width="100"></th><th></th></tr></thead><tbody><tr><td><strong>Option</strong></td><td><strong>Alias</strong></td><td><strong>Description</strong></td><td><strong>Type</strong></td><td><strong>Default</strong></td></tr><tr><td><code>--translation-path</code></td><td><code>root</code></td><td>The folder that contains the root translation files.</td><td><code>string</code></td><td><code>src/assets/i18n</code></td></tr><tr><td><code>--source</code></td><td><code>o</code></td><td>The source directory path that contains the merged translation files.</td><td><code>string</code></td><td><code>dist-i18n</code></td></tr></tbody></table>

***

### **Usage Example**

```bash
ng generate @jsverse/transloco-schematics:split --root src/assets/i18n -o dist-i18n
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://jsverse.gitbook.io/transloco/developer-tools/schematics/split.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
