diff --git a/frontend/src/lib/i18n/locales/en.json b/frontend/src/lib/i18n/locales/en.json index ac32e97..e753dfc 100644 --- a/frontend/src/lib/i18n/locales/en.json +++ b/frontend/src/lib/i18n/locales/en.json @@ -291,7 +291,8 @@ "join_description": "Join at {{url}} and enter {{pin}}.", "join_by_entering_code": "Join by entering the following code", "points_added": "Points added", - "your_place": "You're on place {{place}}!" + "your_place": "You're on place {{place}}!", + "players_waiting": "{{count}} players are waiting" }, "editor_page": { "add_an_answer": "Add an answer", diff --git a/frontend/src/lib/play/admin/game_not_started.svelte b/frontend/src/lib/play/admin/game_not_started.svelte index 439f543..5b01ce3 100644 --- a/frontend/src/lib/play/admin/game_not_started.svelte +++ b/frontend/src/lib/play/admin/game_not_started.svelte @@ -4,7 +4,7 @@ SPDX-FileCopyrightText: 2023 Marlon W (Mawoka) SPDX-License-Identifier: MPL-2.0 --> - -
+
-
-
-

+

+
+

{$t('play_page.join_description', { url: window.location.host === 'classquiz.de' @@ -50,39 +50,57 @@ SPDX-License-Identifier: MPL-2.0

QR code to join the game {#if cqc_code} -
-
-

{$t('play_page.join_by_entering_code')}

+
+
+

+ {$t('play_page.players_waiting', { + count: players.length ?? 0 + })} +

+
+
+

{$t('play_page.join_by_entering_code')}

+ +
+ + {:else} +
+

+ {$t('play_page.players_waiting', { + count: players.length ?? 0 + })} +

{/if} +
-

- {$t('words.pin')}: {game_pin} +

+ {$t('words.pin')}: {game_pin}

-
+
{ socket.emit('start_game', ''); }} - >{$t('admin_page.start_game')} + >{$t('admin_page.start_game')}
-
+
{#if players.length > 0} {#each players as player} -
+
{ kick_player(player.username); }}>{player.username}