[READY][i18n][P17] Django i18n foundation: locale pipeline + resolver for shared keys (da/en) #209
Reference in New Issue
Block a user
Delete Branch "feat/issue-205-django-i18n-foundation"
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
Implements issue #205 (Django i18n foundation) with backend locale pipeline + shared-key resolver for
da/en.What changed
endefault,en/dasupported, locale middleware on).shared/i18n/lobby.json.lobby/i18n.pyfor locale detection + key->message resolution with deterministic fallback.docs/ISSUE-205-I18N-FOUNDATION.md.Acceptance checks
en+dawith fallback toen.Local checks
python manage.py test lobby.tests→ 59 passedReview summary (PR #209, SHA
9e47a3a139)i18n_locale_config()against malformed locale entries by casting before.strip()(e.g.str(locale).strip().lower()) to avoid potentialAttributeErrorif config data is ever non-string.nickname_invalid) to ensure allapi_error(...)call sites consistently includelocale+ localizederror.Overall: Implementation matches issue scope and keeps error-code contract stable while adding locale-aware backend messages.