2305c3dc9d35257cbe03d4def723a03da6ef3fad
- Add backend/locale/ar_SA/LC_MESSAGES/django.po with Arabic (ar-sa) translations
for all 62 user-facing error/validation strings across accounts, bookings,
payments, and notifications apps; compile to django.mo
- Add common.loading and salon.unknownStaff keys to both ar-sa.json and en.json
- ProtectedRoute: replace hardcoded "Loading..." with t("common.loading")
- BookPage, SalonDetailPage: replace `Staff ${s.id}` fallback with
t("salon.unknownStaff", { id: s.id })
- BookingsPage: pass getActiveLocale() to toLocaleString so date/time
format matches the active app language
All 35 backend tests and 7 frontend tests pass.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Salon Booking Platform
Scaffolded Django + React starter for a salon booking platform.
Backend
Location: backend/
Setup
- Create a virtualenv and install dependencies.
python3 -m venv venv && source venv/bin/activate(orvenv\Scripts\activateon Windows)pip install -r backend/requirements.txt -r backend/requirements-dev.txt
- Copy
backend/.env.exampletobackend/.envand adjust values. - Run migrations and start the server.
Demo data
After migrations, you can seed demo data:
python manage.py seed_demo
Tests
- From project root with venv active:
venv/bin/python3 -m pytest(run frombackend/sopytest.iniis picked up) - External provider tests are skipped by default; run explicitly when needed:
PYTEST_ADDOPTS='' venv/bin/python3 -m pytest -m external
Core API endpoints (current scaffold)
POST /api/auth/register/POST /api/auth/token/POST /api/auth/token/refresh/GET/PATCH /api/auth/me/POST /api/auth/otp/request/POST /api/auth/otp/verify/POST /api/auth/phone/request/POST /api/auth/phone/verify/POST /api/auth/social/<provider>/(placeholder)GET /api/salons/GET /api/salons/<id>/GET /api/salons/<id>/services/GET /api/salons/<id>/staff/GET /api/salons/<id>/reviews/GET/POST /api/bookings/GET /api/bookings/<id>/GET/POST /api/payments/
Frontend
Location: frontend/
Setup
- Install dependencies via
npm install. - Run
npm run dev.
Tests
npm run test
The dev server proxies /api to http://localhost:8000.
Project Notes
- Known gaps and risks:
docs/risks.md - Architecture and async/observability decisions:
docs/architecture.md - Documentation index and standards:
docs/README.mdanddocs/documentation.md
Description
Languages
Python
74.5%
JavaScript
21.8%
CSS
3.5%
HTML
0.2%