<commit_before># broccoli-ember-i18n-precompile

WARNING: Work in progress

The broccoli-ember-i18n-precompile plugin precompiles `.json` files with translations.

This is a very opinionated plugin, it assumes a top level folder with the language name, 
with individual folders and JSON files beneath them. So something like this:

It assumes you will load the translations at initialization time.

```
app
|- translations
|  |- en
|  |  |- users
|  |  |  |- index.json
|  |- de
|  |  |- users
|  |  |  |- index.json
```

## Installation

```bash
npm install --save-dev broccoli-ember-i18n-precompile
```

## Usage

```js
var emberI18nPrecompile = require('broccoli-ember-i18n-precompile');

var outputTree = emberI18nPrecompile(inputTrees, options)
```

* **`inputTree`**: Trees that act as the source

* **`options`**: A hash of options.

### Example
<commit_msg>Works, so remove this.<commit_after># broccoli-ember-i18n-precompile

The broccoli-ember-i18n-precompile plugin precompiles `.json` files with translations.

This is an opinionated plugin, it assumes a top level folder with the language name, 
with individual folders and JSON files beneath them. It assumes you will load the translations at initialization time.

Your translations folder will look something like this:

```
app
|- translations
|  |- en
|  |  navigation.json
|  |  |- users
|  |  |  |- index.json
|  |- de
|  |  navigation.json
|  |  |- users
|  |  |  |- index.json
```

You should end up with js files, with an object:

```
{
  "navigation": {
    ...
  },
  "users": {
    "index": {
      ...
    }
  }
}
```

## Installation

```bash
npm install --save-dev broccoli-ember-i18n-precompile
```

## Usage

```js
var emberI18nPrecompile = require('broccoli-ember-i18n-precompile');

var outputTree = emberI18nPrecompile(inputTree, options)
```

* **`inputTree`**: Trees that act as the source

* **`options`**: A hash of options.

### Example

{'fraction_non_alphanumeric': 0.13350649350649352, 'fraction_numerical': 0.012467532467532468, 'mean_word_length': 3.585714285714286, 'pattern_counts': {'":': 3, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7669288', 'n_tokens_mistral': 688, 'n_tokens_neox': 623, 'n_words': 193}