🌐 Added translation-strings
This commit is contained in:
@@ -86,7 +86,10 @@
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<p class="text-center">{quiz.questions.length} Questions</p>
|
||||
<p class="text-center">
|
||||
{quiz.questions.length}
|
||||
{$t('words.question', { count: quiz.questions.length })}
|
||||
</p>
|
||||
<div class="flex justify-center mt-8">
|
||||
{#if quiz.public}
|
||||
<svg
|
||||
@@ -127,7 +130,7 @@
|
||||
<a
|
||||
href="/edit?quiz_id={quiz.id}"
|
||||
class="px-4 py-2 leading-5 text-black dark:text-white transition-colors duration-200 transform bg-gray-50 dark:bg-gray-700 rounded text-center hover:bg-gray-300 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:hover:bg-gray-600"
|
||||
>Edit</a
|
||||
>{$t('words.edit')}</a
|
||||
>
|
||||
<button
|
||||
on:click={() => {
|
||||
@@ -135,7 +138,7 @@
|
||||
}}
|
||||
class="px-4 py-2 leading-5 text-black dark:text-white transition-colors duration-200 transform bg-gray-50 dark:bg-gray-700 rounded text-center hover:bg-gray-300 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:hover:bg-gray-600"
|
||||
>
|
||||
Start
|
||||
{$t('words.start')}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -108,7 +108,8 @@
|
||||
"range": "Range",
|
||||
"multiple_choice": "Multiple-Choice",
|
||||
"private": "Private",
|
||||
"dashboard": "Dashboard"
|
||||
"dashboard": "Dashboard",
|
||||
"question_plural": "Questions"
|
||||
},
|
||||
"editor": {
|
||||
"time_in_seconds": "Time in seconds",
|
||||
@@ -165,5 +166,8 @@
|
||||
"editor_page": {
|
||||
"add_an_answer": "Add an answer",
|
||||
"right_click_to_delete": "Right-click on an answer to delete it!"
|
||||
},
|
||||
"dashboard": {
|
||||
"search_for_own_quizzes": "Search for your own quizzes"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -129,7 +129,7 @@
|
||||
<input
|
||||
bind:value={search_term}
|
||||
class="p-2 rounded-lg outline-none text-center w-96 dark:bg-gray-700"
|
||||
placeholder="Search for your own quizzes"
|
||||
placeholder={$t('dashboard.search_for_own_quizzes')}
|
||||
/>
|
||||
<button
|
||||
on:click={() => {
|
||||
|
||||
Reference in New Issue
Block a user