Election export and import as a draft from a json file
This PR address issue #65.
It adds a new tab to export an election (or a draft) as json. The election will be transformed to the draft format.
The file containing the election as json can then be imported to create a new draft with all the necessary informations.
Thank you for your efforts.
- "Export the election" would be better
- It would be better to offer a file download. Copy-pasting can be error-prone in some contexts.
- Conversely, an "Import an election" button that offers a file upload could work.
- Beware that the format is not the same for draft and validated elections.
This PR is ready.
A first global comment: we use ocamlformat to enforce a coherent coding style. Please install it in your OPAM switch, and run dune fmt so that the style is applied everywhere.
Ok!
How i18n works ? It seems that Belenios uses Weblate to manage translations.