feat(vocab): add language and course dictionary endpoints and UI components

- Implemented `getLanguageDictionary` and `getCourseDictionary` methods in the VocabService to retrieve vocabulary entries filtered by search terms.
- Updated VocabController and vocabRouter to include new routes for accessing language and course dictionaries.
- Enhanced frontend components to navigate to the new dictionary views, including buttons in VocabCourseView and VocabLanguageView.
- Added localization entries for the dictionary feature in multiple languages, ensuring a consistent user experience across the platform.
This commit is contained in:
Torsten Schulz (local)
2026-04-10 13:08:18 +02:00
parent da8f173310
commit cb2239be6f
18 changed files with 443 additions and 16 deletions

View File

@@ -148,6 +148,7 @@
"subscribeLanguage": "Subscribe to language",
"language": "Language",
"chapter": "Chapter",
"vocabDictionary": "Dictionary",
"courses": "Courses",
"course": "Course",
"lesson": "Lesson",

View File

@@ -468,6 +468,19 @@
"noResults": "No results.",
"error": "Search failed."
},
"dictionary": {
"open": "Dictionary",
"kicker": "Lookup",
"intro": "All terms from your chapters. One field filters both languages by partial matches.",
"searchLabel": "Search (both languages)",
"searchPlaceholder": "Part of a word in either language…",
"empty": "No entries.",
"loadError": "Could not load the dictionary.",
"notFound": "No access or not found.",
"languageTitle": "Dictionary: {name}",
"courseTitle": "Course dictionary: {name}",
"courseLearningColumn": "Learning language (course)"
},
"courses": {
"title": "Language Learning Courses",
"create": "Create Course",