1.5 KiB
1.5 KiB
Issue #207 Artifact — da/en locale switch + audio routing (primary-only)
Scope
Acceptance for [READY][i18n][P19]:
- Verify one MVP host+player flow in both
enanddalocale context. - Verify controlled fallback to
enwhen a locale key is missing. - Verify audio-routing policy is primary-only (client/player has no audio output).
No new feature behavior added — this is verification-only evidence.
Smoke/e2e evidence (Angular shell test run)
Executed from frontend/angular:
npm test -- --reporter=dot src/app/lobby-i18n.spec.ts src/app/features/host/host-shell.component.spec.ts src/app/features/player/player-shell.component.spec.ts
Evidence covered by the run:
lobby-i18n.spec.ts- subscriber locale switch updates (
en -> da -> en) - controlled fallback where
dakey is removed during test andencopy is returned clientHasNoAudioOutput === true(primary-only audio routing)
- subscriber locale switch updates (
host-shell.component.spec.ts- host actions and route sync in SPA (no reload)
player-shell.component.spec.ts- player session refresh/sync path and retry behavior
Policy evidence
- Shared catalog capability:
shared/i18n/lobby.jsonfrontend.capabilities.client_has_no_audio_output = true
- Angular host/player shells bind this capability:
HostShellComponent.clientHasNoAudioOutputPlayerShellComponent.clientHasNoAudioOutput
Conclusion: locale switching works in da/en, fallback resolves to en when locale key is intentionally missing, and client audio remains disabled by policy (primary-only).