Skip to content

Latest commit

 

History

History
 
 

v1

API

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.

Update questionnaires

See our Contributers Guide

  1. 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 (in i18n).

(Run the build process)

Localisation

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:

  1. Extract strings to translate from base questionnaire
  2. Create translated versions of the questionnaire