# `i18next` support for `druid-kyt-starter`

## Configuration

The configuration is supplied in `i18n` key of `project-kyt.config.js`

|------------------------------|-------|----------------------------------------------------------------------|
| Option                       | Req.  | Description                                                          |
|------------------------------|-------|----------------------------------------------------------------------|
| mode                         | *Yes* | Mode of operation. Either `'po-file'` or `'json-file'`.              |
| languages                    | *Yes* | Array of allowed languages, e.g. `['fi', 'en']`.                     |
| defaultLanguage              | *No*  | The default language, e.g. `'fi'`. If not set, first of `languages`. |
| translationsDirectory        | *Yes* | Directory of the translations on disk.                               |
| translationsFilenamePattern  | *Yes* | Filename pattern of the translations. E.g. `'{{lng}}.{{ns}}.po'`     |
| removeDefaultLanguageFromUrl | *Yes* | Filename pattern of the translations. E.g. `'{{lng}}.{{ns}}.po'`     |
| middleware                   | *No*  | Object containing additional config for i18next-express-middleware.  |
| i18next                      | *No*  | Object containing additional config for i18next.                     |
|------------------------------|-------|----------------------------------------------------------------------|
