Merge pull request '[MVP][READY] #175-C Angular host/player integration + hardcoded kerneflow-tekster cleanup (#227)' (#238) from feat/issue-227-angular-host-player-i18n-cleanup into main
All checks were successful
CI / test-and-quality (push) Successful in 2m38s

This commit was merged in pull request #238.
This commit is contained in:
2026-03-02 00:50:44 +01:00
2 changed files with 4 additions and 4 deletions

View File

@@ -156,7 +156,7 @@ export class HostShellComponent implements OnInit, OnDestroy {
try {
const state = await this.controller.hydrateLobby(this.sessionCode);
if (!state.session || state.errorMessage) {
throw new Error(state.errorMessage ?? 'Unknown error');
throw new Error(state.errorMessage ?? this.copy('common.unknown_error'));
}
this.session = state.session as SessionDetail;
this.sessionCode = this.session.session.code;
@@ -177,7 +177,7 @@ export class HostShellComponent implements OnInit, OnDestroy {
await this.runAction(async () => {
const state = await this.controller.startRound(this.sessionCode, this.categorySlug.trim());
if (!state.session || state.errorMessage) {
throw new Error(state.errorMessage ?? 'Unknown error');
throw new Error(state.errorMessage ?? this.copy('common.unknown_error'));
}
this.session = state.session as SessionDetail;
this.sessionCode = this.session.session.code;

View File

@@ -433,7 +433,7 @@ export class PlayerShellComponent implements OnInit, OnDestroy {
try {
const state = await this.controller.hydrateLobby(this.sessionCode);
if (!state.session || state.errorMessage) {
throw new Error(state.errorMessage ?? 'Unknown error');
throw new Error(state.errorMessage ?? this.copy('common.unknown_error'));
}
this.session = state.session as SessionDetail;
this.sessionCode = this.session.session.code;
@@ -459,7 +459,7 @@ export class PlayerShellComponent implements OnInit, OnDestroy {
try {
const state = await this.controller.joinLobby(this.sessionCode, this.nickname);
if (!state.session || state.errorMessage) {
throw new Error(state.errorMessage ?? 'Unknown error');
throw new Error(state.errorMessage ?? this.copy('common.unknown_error'));
}
this.session = state.session as SessionDetail;
this.sessionCode = this.session.session.code;