diff --git a/frontend/src/lib/i18n/locales/en.json b/frontend/src/lib/i18n/locales/en.json index 5df8b07..5db6c55 100644 --- a/frontend/src/lib/i18n/locales/en.json +++ b/frontend/src/lib/i18n/locales/en.json @@ -8,7 +8,8 @@ "features_description": { "1": "ClassQuiz is a quiz-platform that allows you to create and manage quizzes.", "2": "The main feature is a KAHOOT!-import function that allows you to import quizzes from KAHOOT!-quizzes." - } + }, + "stats": "There are already {{user_count}} users and {{quiz_count}} quizzes on ClassQuiz." }, "overview_page": { "created_at": "Created at", diff --git a/frontend/src/routes/index.svelte b/frontend/src/routes/index.svelte index 4dbe7c9..c8043d7 100644 --- a/frontend/src/routes/index.svelte +++ b/frontend/src/routes/index.svelte @@ -49,9 +49,7 @@

{$t('words.stats')}

{#await getStats() then stats} - There are already {stats.user_count} users and - - {stats.quiz_count} quizzes on ClassQuiz. + {$t('index_page.stats', { user_count: stats.user_count, quiz_count: stats.quiz_count })} {/await}

diff --git a/frontend/src/routes/overview.svelte b/frontend/src/routes/overview.svelte index 51cee23..a4b1777 100644 --- a/frontend/src/routes/overview.svelte +++ b/frontend/src/routes/overview.svelte @@ -239,6 +239,7 @@ {:else}

+ Looks like you don't have any quizzes. Wanna change that? Click the "Create"-button, or import a quiz from KAHOOT!