|availables||(Default: ['fr', 'en']) the array of availables languages, this list will automatically create json files to translate the text||Yes|
|directory||(Default: locales) Where to store the generated json files||Yes|
|default||(Default: en) Which language to use if the client did not provide the accept-language header.||Yes|
|autoReload||(Default: true) Each time a modification is made in a json file the backend reload the language, no need to restart the backend to apply language modifications.||No|
|syncFiles||(Default: true) Each time a i18n item is call, all the files will get the entry, if the entry is already there, nothing is override.||No|
|debug||(Default: false) If you have trouble with the i18n plugin||No|
The require files for the translation are created automatically.
They are also synchronized together and modification are applied automatically.
The synchronization process is made only when a client get the message, in summary you have to wait to get everything, You should do the translation manually in each files before deploying in production.
If a translation is missing, the default value will be taken and returned to the client.
The official documentation for the i18n module is recommended for reference.