From 8bbfd46ada643a14e4504aee9c1dbd32969c7147 Mon Sep 17 00:00:00 2001 From: "Torsten Schulz (local)" Date: Wed, 1 Apr 2026 10:05:37 +0200 Subject: [PATCH] feat(i18n): add new localization keys for lesson details and deepening sections - Introduced new localization strings in German, English, and Spanish for lesson detail toggles and deepening sections, enhancing user experience across multiple languages. - Updated VocabLessonView to incorporate these new localization keys, improving the clarity and accessibility of lesson information for users. --- .../src/i18n/locales/de/socialnetwork.json | 3 + .../src/i18n/locales/en/socialnetwork.json | 3 + .../src/i18n/locales/es/socialnetwork.json | 3 + frontend/src/views/social/VocabLessonView.vue | 377 ++++++++++-------- 4 files changed, 222 insertions(+), 164 deletions(-) diff --git a/frontend/src/i18n/locales/de/socialnetwork.json b/frontend/src/i18n/locales/de/socialnetwork.json index bae3467..1bc75d5 100644 --- a/frontend/src/i18n/locales/de/socialnetwork.json +++ b/frontend/src/i18n/locales/de/socialnetwork.json @@ -456,6 +456,9 @@ "vocabPrepStep2": "Gehe die gleichen Begriffe noch einmal durch (aktive Wiederholung, ohne zu üben).", "vocabPrepConfirm2": "Zweite Durchsicht erledigt", "vocabPrepReady": "Du kannst jetzt mit dem Vokabeltrainer starten.", + "lessonDetailsToggle": "Mehr Lektionsdetails anzeigen", + "deepenSectionTitle": "Vertiefen und nachlesen", + "assistantSectionTitle": "Mit Sprachassistent vertiefen", "vocabOverviewToggle": "Gesamtübersicht der Begriffe anzeigen", "vocabTrainerLockedHint": "Bitte bestätige zuerst zwei Lern-Durchgänge bei „Vorbereitung vor dem Vokabeltrainer“.", "exerciseUnlockHintAfterPrep": "Arbeite zuerst die vorbereiteten Begriffe durch. Danach wird die Kapitel-Prüfung freigeschaltet.", diff --git a/frontend/src/i18n/locales/en/socialnetwork.json b/frontend/src/i18n/locales/en/socialnetwork.json index 81eb85c..cc17513 100644 --- a/frontend/src/i18n/locales/en/socialnetwork.json +++ b/frontend/src/i18n/locales/en/socialnetwork.json @@ -456,6 +456,9 @@ "vocabPrepStep2": "Go through the same items again (active review, not testing yet).", "vocabPrepConfirm2": "Second pass done", "vocabPrepReady": "You can start the vocabulary trainer now.", + "lessonDetailsToggle": "Show more lesson details", + "deepenSectionTitle": "Deepen and review", + "assistantSectionTitle": "Deepen with language assistant", "vocabOverviewToggle": "Show full overview of terms", "vocabTrainerLockedHint": "Please confirm two preparation steps under “Preparation before the vocabulary trainer” first.", "exerciseUnlockHintAfterPrep": "Work through the prepared terms first. The chapter test will unlock afterwards.", diff --git a/frontend/src/i18n/locales/es/socialnetwork.json b/frontend/src/i18n/locales/es/socialnetwork.json index 9c52d20..f185fcf 100644 --- a/frontend/src/i18n/locales/es/socialnetwork.json +++ b/frontend/src/i18n/locales/es/socialnetwork.json @@ -454,6 +454,9 @@ "vocabPrepStep2": "Repasa los mismos elementos otra vez (repaso activo, aún sin practicar).", "vocabPrepConfirm2": "Segunda lectura hecha", "vocabPrepReady": "Ya puedes iniciar el entrenador de vocabulario.", + "lessonDetailsToggle": "Mostrar más detalles de la lección", + "deepenSectionTitle": "Profundizar y repasar", + "assistantSectionTitle": "Profundizar con el asistente de idiomas", "vocabOverviewToggle": "Mostrar vista general completa de los términos", "vocabTrainerLockedHint": "Confirma primero los dos pasos de preparación arriba.", "exerciseUnlockHintAfterPrep": "Primero recorre los términos preparados. Después se desbloqueará la prueba del capítulo.", diff --git a/frontend/src/views/social/VocabLessonView.vue b/frontend/src/views/social/VocabLessonView.vue index c85ceae..70f3511 100644 --- a/frontend/src/views/social/VocabLessonView.vue +++ b/frontend/src/views/social/VocabLessonView.vue @@ -7,8 +7,6 @@

{{ lesson.title }}

-

{{ lesson.description }}

-
-
- Phase - {{ getPhaseLabel(lessonPedagogy.phaseLabel) }} -
Fokus {{ getDidacticModeLabel(lessonPedagogy.didacticMode) }} @@ -59,15 +53,29 @@ {{ $t('socialnetwork.vocab.courses.exerciseLoad') }} {{ effectiveExercises?.length || 0 }} {{ $t('socialnetwork.vocab.courses.exercisesShort') }}
-
- Neue Einheiten - {{ lessonPedagogy.newUnitTarget }} -
-
- Wiederholung - {{ lessonPedagogy.reviewWeight }}% -
+
+ + {{ $t('socialnetwork.vocab.courses.lessonDetailsToggle') }} + +
+
+ Phase + {{ getPhaseLabel(lessonPedagogy.phaseLabel) }} +
+
+ Neue Einheiten + {{ lessonPedagogy.newUnitTarget }} +
+
+ Wiederholung + {{ lessonPedagogy.reviewWeight }}% +
+
+
@@ -75,148 +83,6 @@

Diese Lektion priorisiert Wiederholung und Vertiefung. Neuer Stoff wird bewusst reduziert, damit vorhandene Muster stabil werden.

-
-
-
-

{{ $t('socialnetwork.vocab.courses.lessonDescription') }}

-

{{ lesson.description }}

-
-
-

{{ $t('socialnetwork.vocab.courses.learningGoals') }}

-
    -
  • {{ goal }}
  • -
-
-
- -
-

{{ $t('socialnetwork.vocab.courses.corePatterns') }}

-

- {{ $t('socialnetwork.vocab.courses.corePatternsHint') }} -

-
-
-
{{ pattern.target }}
-
{{ pattern.gloss }}
-
-
-
- -
-

{{ $t('socialnetwork.vocab.courses.grammarExplanations') }}

-
- {{ explanation.title || $t('socialnetwork.vocab.courses.grammarImpulse') }} -

{{ explanation.text }}

-

{{ explanation.example }}

-
-
- -
-

{{ $t('socialnetwork.vocab.courses.speakingTasks') }}

-
- {{ prompt.title || $t('socialnetwork.vocab.courses.speakingPrompt') }} -

{{ prompt.prompt }}

-

{{ prompt.cue }}

-
-
- -
-

{{ $t('socialnetwork.vocab.courses.practicalTasks') }}

-
- {{ task.title }} -

{{ task.text }}

-
-
- -
-
-
-

{{ $t('socialnetwork.vocab.courses.languageAssistantTitle') }}

-

{{ $t('socialnetwork.vocab.courses.languageAssistantIntro') }}

-
- -
- -
- {{ $t('general.loading') }} -
- -
-

{{ $t('socialnetwork.vocab.courses.languageAssistantSetupHint') }}

-
- -
-
- -
- -
- - - -
- -
-
- {{ message.role === 'assistant' ? $t('socialnetwork.vocab.courses.languageAssistantSpeakerAi') : $t('socialnetwork.vocab.courses.languageAssistantSpeakerYou') }} -

{{ message.content }}

-
-
- -