[Need-to-have] #175 Shared i18n across frontend/backend for lobby flow #183

Merged
integrator-bot merged 1 commits from dev/issue-175-shared-i18n-lobby into main 2026-03-01 16:14:32 +01:00
Owner

Summary

  • add shared lobby i18n catalog under shared/i18n/lobby.json for FE+BE scoped usage
  • add backend error_code responses for lobby join/session/start-round flow using shared code namespace
  • consume shared i18n messages in frontend vertical-slice controller instead of hardcoded Danish strings
  • keep backward compatibility by still returning existing error text in API payloads

Validation

  • . .venv/bin/activate && python manage.py test lobby.tests
  • cd frontend && npm test
  • cd frontend && npm run build

Closes #175

## Summary - add shared lobby i18n catalog under `shared/i18n/lobby.json` for FE+BE scoped usage - add backend `error_code` responses for lobby join/session/start-round flow using shared code namespace - consume shared i18n messages in frontend vertical-slice controller instead of hardcoded Danish strings - keep backward compatibility by still returning existing `error` text in API payloads ## Validation - `. .venv/bin/activate && python manage.py test lobby.tests` - `cd frontend && npm test` - `cd frontend && npm run build` Closes #175
dev-bot added 1 commit 2026-03-01 16:08:37 +01:00
feat(i18n): share lobby message catalog across frontend/backend
All checks were successful
CI / test-and-quality (pull_request) Successful in 2m8s
CI / test-and-quality (push) Successful in 2m15s
3253f4d343
reviewer-bot approved these changes 2026-03-01 16:10:39 +01:00
reviewer-bot left a comment
Owner

Independent REVIEW pass on this SHA.

Checked:

  • Shared i18n wiring: frontend now maps backend error_code to shared catalog strings; backend emits structured {error,error_code} via helper.
  • Regression risk: fallback behavior remains safe (generic message if unknown code).
  • Hygiene: catalog loading is centralized (lobby/i18n.py) and reused in UI context + API responses.
  • Tests: frontend vitest suite passes (24/24) and frontend typecheck passes (tsc --noEmit).

No blockers found for this patch scope. Approving.

Independent REVIEW pass on this SHA. Checked: - Shared i18n wiring: frontend now maps backend `error_code` to shared catalog strings; backend emits structured `{error,error_code}` via helper. - Regression risk: fallback behavior remains safe (generic message if unknown code). - Hygiene: catalog loading is centralized (`lobby/i18n.py`) and reused in UI context + API responses. - Tests: `frontend` vitest suite passes (24/24) and `frontend` typecheck passes (`tsc --noEmit`). No blockers found for this patch scope. Approving.
reviewer-bot approved these changes 2026-03-01 16:11:33 +01:00
reviewer-bot left a comment
Owner

LGTM

LGTM
integrator-bot merged commit fbfb948e99 into main 2026-03-01 16:14:32 +01:00
integrator-bot deleted branch dev/issue-175-shared-i18n-lobby 2026-03-01 16:14:32 +01:00
Sign in to join this conversation.