diff --git a/frontend/src/lib/editor/ABCDEditorPart.svelte b/frontend/src/lib/editor/ABCDEditorPart.svelte index 1d5cab7..a334598 100644 --- a/frontend/src/lib/editor/ABCDEditorPart.svelte +++ b/frontend/src/lib/editor/ABCDEditorPart.svelte @@ -8,6 +8,9 @@ import { fade } from 'svelte/transition'; import { reach } from 'yup'; import { ABCDQuestionSchema } from '$lib/yupSchemas'; + import { getLocalization } from '$lib/i18n'; + + const { t } = getLocalization(); const empty_answer: Answer = { right: false, @@ -91,7 +94,7 @@ ]; }} > - Add an answer + {$t('editor_page.add_an_answer')} {/if} diff --git a/frontend/src/lib/editor/card.svelte b/frontend/src/lib/editor/card.svelte index 66b38c0..de3bca0 100644 --- a/frontend/src/lib/editor/card.svelte +++ b/frontend/src/lib/editor/card.svelte @@ -14,6 +14,9 @@ import { createTippy } from 'svelte-tippy'; import 'tippy.js/animations/perspective-subtle.css'; import 'tippy.js/dist/tippy.css'; + import { getLocalization } from '$lib/i18n'; + + const { t } = getLocalization(); const tippy = createTippy({ arrow: true, @@ -160,8 +163,8 @@ name="Answer-Type" bind:value={data.questions[selected_question].type} > - - + +
Right-click on an answer to delete it!
+{$t('editor_page.right_click_to_delete')}
diff --git a/frontend/src/lib/editor/settings-card.svelte b/frontend/src/lib/editor/settings-card.svelte index 2a9b882..f9f3363 100644 --- a/frontend/src/lib/editor/settings-card.svelte +++ b/frontend/src/lib/editor/settings-card.svelte @@ -5,6 +5,9 @@ --> @@ -62,7 +65,7 @@ d="M3.055 11H5a2 2 0 012 2v1a2 2 0 002 2 2 2 0 012 2v2.945M8 3.935V5.5A2.5 2.5 0 0010.5 8h.5a2 2 0 012 2 2 2 0 104 0 2 2 0 012-2h1.064M15 20.488V18a2 2 0 012-2h3.064M21 12a9 9 0 11-18 0 9 9 0 0118 0z" /> - Public + {$t('words.public')} {:else} - Private + {$t('words.private')} {/if} diff --git a/frontend/src/lib/i18n/locales/en.json b/frontend/src/lib/i18n/locales/en.json index a8b5810..e0e82e6 100644 --- a/frontend/src/lib/i18n/locales/en.json +++ b/frontend/src/lib/i18n/locales/en.json @@ -104,7 +104,10 @@ "correct": "Correct", "result": "Result", "result_plural": "Results", - "count": "Count" + "count": "Count", + "range": "", + "multiple_choice": "", + "private": "" }, "editor": { "time_in_seconds": "Time in seconds", @@ -156,5 +159,9 @@ "2nd_place": "2nd Place", "3rd place": "3rd Place", "with_out_of": "with {{correct_questions}} out of {{total_question_count}}" + }, + "editor_page": { + "add_an_answer": "", + "right_click_to_delete": "" } }