fix(gameplay): restore scoreboard phase error contract
Some checks failed
CI / test-and-quality (push) Failing after 2m30s
CI / test-and-quality (pull_request) Failing after 2m32s

This commit is contained in:
2026-03-15 08:52:35 +00:00
parent 97b366d1e9
commit 8fa39adc2b
4 changed files with 193 additions and 24 deletions

View File

@@ -39,6 +39,18 @@
"unknown": {
"en": "Action failed. Refresh status and try again.",
"da": "Handlingen fejlede. Opdater status og prøv igen."
},
"scoreboard_failed": {
"en": "Could not load scoreboard. Refresh the session and try again.",
"da": "Kunne ikke indlæse scoreboardet. Opdater sessionen og prøv igen."
},
"next_round_failed": {
"en": "Could not start next round. Refresh the session and try again.",
"da": "Kunne ikke starte næste runde. Opdater sessionen og prøv igen."
},
"finish_game_failed": {
"en": "Could not finish game. Refresh the session and try again.",
"da": "Kunne ikke afslutte spillet. Opdater sessionen og prøv igen."
}
},
"ui": {
@@ -296,7 +308,13 @@
"not_enough_answers_to_mix": "not_enough_answers_to_mix",
"host_only_start_round": "host_only_start_round",
"host_only_show_question": "host_only_show_question",
"host_only_mix_answers": "host_only_mix_answers"
"host_only_mix_answers": "host_only_mix_answers",
"host_only_view_scoreboard": "host_only_view_scoreboard",
"scoreboard_invalid_phase": "scoreboard_invalid_phase",
"host_only_start_next_round": "host_only_start_next_round",
"next_round_invalid_phase": "next_round_invalid_phase",
"host_only_finish_game": "host_only_finish_game",
"finish_game_invalid_phase": "finish_game_invalid_phase"
},
"errors": {
"session_code_required": {
@@ -378,6 +396,30 @@
"host_only_mix_answers": {
"en": "Only host can mix answers",
"da": "Kun værten kan blande svar"
},
"host_only_view_scoreboard": {
"en": "Only host can view scoreboard",
"da": "Kun værten kan se scoreboardet"
},
"scoreboard_invalid_phase": {
"en": "Scoreboard is only available in reveal/scoreboard phase",
"da": "Scoreboard er kun tilgængeligt i reveal-/scoreboard-fasen"
},
"host_only_start_next_round": {
"en": "Only host can start next round",
"da": "Kun værten kan starte næste runde"
},
"next_round_invalid_phase": {
"en": "Next round can only start from scoreboard phase",
"da": "Næste runde kan kun starte fra scoreboard-fasen"
},
"host_only_finish_game": {
"en": "Only host can finish game",
"da": "Kun værten kan afslutte spillet"
},
"finish_game_invalid_phase": {
"en": "Game can only be finished from scoreboard phase",
"da": "Spillet kan kun afsluttes fra scoreboard-fasen"
}
}
},
@@ -416,7 +458,13 @@
"no_available_questions": "start_round_failed",
"mix_answers_invalid_phase": "start_round_failed",
"round_question_not_found": "start_round_failed",
"not_enough_answers_to_mix": "start_round_failed"
"not_enough_answers_to_mix": "start_round_failed",
"host_only_view_scoreboard": "scoreboard_failed",
"scoreboard_invalid_phase": "scoreboard_failed",
"host_only_start_next_round": "next_round_failed",
"next_round_invalid_phase": "next_round_failed",
"host_only_finish_game": "finish_game_failed",
"finish_game_invalid_phase": "finish_game_failed"
}
}
}