A web frontend to convert OCDS data from JSON to Excel/CSV
pip install -r requirements_dev.txt
pre-commit installcd frontend
npm installcoverage run --source=core,spoonbill_web -m pytest -W error --no-migrationscd frontend
npx vue-cli-service lint
npx vue-cli-service test:unit./manage.py migrate
./manage.py runservercd frontend
npx vue-cli-service serveStart celery worker:
celery -A core worker -l INFO --concurrency=2Start celery beat:
celery -A core beat -l INFO --scheduler django_celery_beat.schedulers:DatabaseSchedulerFor Django, see the Software Development Handbook.
Change to the frontend/ directory:
cd frontendExtract messages:
npx gettext-extract --removeHTMLWhitespaces --output messages.pot src/main.js $(find src -type f -name '*.vue')Push and pull messages from a translation tool, or use pybabel and then edit PO files to translate strings:
uv run pybabel update -N -i messages.pot -d localeCompile messages:
npx gettext-compile --output src/translations/translations.json locale/*/LC_MESSAGES/messages.po