🌐 Added more translations in the play-screens
This commit is contained in:
@@ -109,7 +109,8 @@
|
|||||||
"multiple_choice": "Multiple-Choice",
|
"multiple_choice": "Multiple-Choice",
|
||||||
"private": "Privat",
|
"private": "Privat",
|
||||||
"dashboard": "Dashboard",
|
"dashboard": "Dashboard",
|
||||||
"question_plural": "Fragen"
|
"question_plural": "Fragen",
|
||||||
|
"game_pin": "Spiel-Pin"
|
||||||
},
|
},
|
||||||
"editor": {
|
"editor": {
|
||||||
"time_in_seconds": "Zeit in Sekunden",
|
"time_in_seconds": "Zeit in Sekunden",
|
||||||
|
|||||||
@@ -109,7 +109,8 @@
|
|||||||
"multiple_choice": "Multiple-Choice",
|
"multiple_choice": "Multiple-Choice",
|
||||||
"private": "Private",
|
"private": "Private",
|
||||||
"dashboard": "Dashboard",
|
"dashboard": "Dashboard",
|
||||||
"question_plural": "Questions"
|
"question_plural": "Questions",
|
||||||
|
"game_pin": "Game Pin"
|
||||||
},
|
},
|
||||||
"editor": {
|
"editor": {
|
||||||
"time_in_seconds": "Time in seconds",
|
"time_in_seconds": "Time in seconds",
|
||||||
|
|||||||
@@ -9,7 +9,9 @@
|
|||||||
import { browser } from '$app/env';
|
import { browser } from '$app/env';
|
||||||
import * as Sentry from '@sentry/browser';
|
import * as Sentry from '@sentry/browser';
|
||||||
import { alertModal } from '../stores';
|
import { alertModal } from '../stores';
|
||||||
|
import { getLocalization } from '$lib/i18n';
|
||||||
|
|
||||||
|
const { t } = getLocalization();
|
||||||
export let game_pin: string;
|
export let game_pin: string;
|
||||||
|
|
||||||
let username = '';
|
let username = '';
|
||||||
@@ -114,9 +116,9 @@
|
|||||||
{#if game_pin === '' || game_pin.length <= 7}
|
{#if game_pin === '' || game_pin.length <= 7}
|
||||||
<div class="flex flex-col justify-center align-center w-screen h-screen">
|
<div class="flex flex-col justify-center align-center w-screen h-screen">
|
||||||
<form on:submit|preventDefault class="flex-col flex justify-center align-center mx-auto">
|
<form on:submit|preventDefault class="flex-col flex justify-center align-center mx-auto">
|
||||||
<h1 class="text-lg text-center">Game Pin</h1>
|
<h1 class="text-lg text-center">{$t('words.game_pin')}</h1>
|
||||||
<input
|
<input
|
||||||
class="border border-amber-800 self-center text-center text-black"
|
class="border border-gray-400 self-center text-center text-black ring-0 outline-none p-2 rounded-lg focus:shadow-2xl transition-all"
|
||||||
bind:value={game_pin}
|
bind:value={game_pin}
|
||||||
maxlength="8"
|
maxlength="8"
|
||||||
/>
|
/>
|
||||||
@@ -128,7 +130,7 @@
|
|||||||
type="submit"
|
type="submit"
|
||||||
disabled={game_pin.length <= 7}
|
disabled={game_pin.length <= 7}
|
||||||
>
|
>
|
||||||
Submit
|
{$t('words.submit')}
|
||||||
</button>
|
</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
@@ -138,14 +140,14 @@
|
|||||||
on:submit|preventDefault={setUsername}
|
on:submit|preventDefault={setUsername}
|
||||||
class="flex-col flex justify-center align-center mx-auto"
|
class="flex-col flex justify-center align-center mx-auto"
|
||||||
>
|
>
|
||||||
<h1 class="text-lg text-center">Username</h1>
|
<h1 class="text-lg text-center">{$t('words.username')}</h1>
|
||||||
<input class="border border-amber-800 text-black text-center" bind:value={username} />
|
<input class="border border-amber-800 text-black text-center" bind:value={username} />
|
||||||
<button
|
<button
|
||||||
class="bg-amber-800 hover:bg-amber-700 text-white font-bold py-2 px-4 rounded disabled:cursor-not-allowed disabled:opacity-50 mt-2"
|
class="bg-amber-800 hover:bg-amber-700 text-white font-bold py-2 px-4 rounded disabled:cursor-not-allowed disabled:opacity-50 mt-2"
|
||||||
type="submit"
|
type="submit"
|
||||||
disabled={username.length <= 3}
|
disabled={username.length <= 3}
|
||||||
>
|
>
|
||||||
Submit
|
{$t('words.submit')}
|
||||||
</button>
|
</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -8,6 +8,9 @@
|
|||||||
import { QuizQuestionType } from '$lib/quiz_types';
|
import { QuizQuestionType } from '$lib/quiz_types';
|
||||||
import { socket } from '$lib/socket';
|
import { socket } from '$lib/socket';
|
||||||
import Spinner from '../Spinner.svelte';
|
import Spinner from '../Spinner.svelte';
|
||||||
|
import { getLocalization } from '$lib/i18n';
|
||||||
|
|
||||||
|
const { t } = getLocalization();
|
||||||
|
|
||||||
export let question: Question;
|
export let question: Question;
|
||||||
export let question_index: string | number;
|
export let question_index: string | number;
|
||||||
@@ -109,7 +112,7 @@
|
|||||||
class="w-1/2 text-3xl bg-amber-700 my-2 disabled:opacity-60 border border-white"
|
class="w-1/2 text-3xl bg-amber-700 my-2 disabled:opacity-60 border border-white"
|
||||||
disabled={selected_answer !== undefined}
|
disabled={selected_answer !== undefined}
|
||||||
on:click={() => selectAnswer(slider_value[0])}
|
on:click={() => selectAnswer(slider_value[0])}
|
||||||
>Submit
|
>{$t('words.submit')}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
{/await}
|
{/await}
|
||||||
|
|||||||
Reference in New Issue
Block a user