The project is bootstrapped with "Create React App".
Run in a local environment:
> npm start
## ESLint & Prettier
ESLint is used for codequality (eg no-unused-vars, no-extra-bind, no-implicit-globals, prefer-promise-reject-errors ...)
Prettier is used for formatting (eg max-len, no-mixed-spaces-and-tabs, keyword-spacing, comma-style ...)
### Setup for VS Code
Install the following plugins:
- ESLint
- Prettier - Code formatter
(Not mandatory) Enable **Format on save**:
> Text Editor -> Formatting -> Format on save
or:
```
{
...
"settings": {
...
"editor.formatOnSave": true
}
}
```
## Language support.
I18next is used for the application's language support.
https://www.i18next.com/overview/getting-started
For each language application supported, there is a translation file.
The path to the translation file is raven-dissemination-gui/source/src/assets/locales/ba/translation.json where "ba" is the country's locale (in this case Bosnia).
Adding a new language.
1) Create a new translation json file. (Make a copy of an old one and replace the language)
2 Import the translation file into i18nextConf.js
Example for Bosnia
``` import translationBa from './assets/locales/ba/translation.json'; ```