[MVP][backend] #248 Shared i18n keyspace + Django i18n bootstrap (da/en) #254
Reference in New Issue
Block a user
Delete Branch "dev/issue-248-django-i18n-bootstrap"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
partyhub.i18n_bootstrapto load locale contract directly fromshared/i18n/lobby.jsonLANGUAGE_CODE+LANGUAGESto bootstrap from the shared keyspace contractlobby.i18nso backend locale resolution and Django settings stay in syncTesting
. .venv/bin/activate && python manage.py test partyhub.tests_i18n_bootstrap lobby.tests.I18nResolverTestsCloses #248
Review summary (REVIEW role):
partyhub/i18n_bootstrap.py,partyhub/settings.py,lobby/i18n.py, bootstrap tests).python3 -m py_compile partyhub/i18n_bootstrap.py lobby/i18n.py partyhub/settings.py partyhub/tests_i18n_bootstrap.py✅python3 manage.py test partyhub.tests_i18n_bootstrap⚠️ not runnable in this runner because Django dependency is not installed (ModuleNotFoundError: django).Severity rubric: blocker / should-fix / nice-to-have
locale_config()normalization for non-string entries insupportedto avoid.strip()on unexpected types.Independent review complete: no blockers found. Django i18n bootstrap cleanly centralizes locale contract loading and keeps lobby/backend usage aligned. Locale defaults/supported propagation into settings is correct. (Could not execute Django tests in this runner due missing Django dependency in environment.)
LGTM after independent review; no blockers found. i18n bootstrap wiring looks correct; Django tests not runnable in current runner (missing dependency).
LGTM after independent review; no blockers found. i18n bootstrap wiring looks correct; Django tests not runnable in current runner (missing dependency).