
NLS
======

To use the `nls` module, you have to configure "nls" load path in webpack,
so that it know where to load the dictionaries. For Torq project, you can
add the following line to the torq-webpack config file:

```JavaSCript
config.addPath("nls", path.join(__dirname, "src/assets/nls"))
```

The "nls" folder should contain sub-folders named by locale code (e.g. en, fr, zh-CN). In each local folder,
there can be one or multiple JSON files. Multiple JSON files will be merged into one JSON object. An example
file structure would look like:

```
  nls/
      en/
          string.json
          synonyms.json
      fr/
          string.json
          synonyms.json
      zh-CN/
          string.json
```

### TODOs

- [ ] Support for synonyms?
