This is a static file API. In order to generate the files for the api run npm run build
.
This will gather everything from ./data
(questionnaires, translations) and generate the files in dist
.
To generate the documentation run npm run build-swagger
.
See our Contributers Guide
- Run
npm run i18n-extract
this will modify your questionnaire and update it with unique translation ids. Furtermore it submits your strings to the localization file (ini18n
).
(Run the build process)
To extract the strings from the questionares in src/data
run npm run i18n-extract
.
To add new Localizations have a look at the docs in root.
The translation of a questionnaire has two steps:
- Extract strings to translate from base questionnaire
- Create translated versions of the questionnaire