Add search functionality for vocabulary in VocabController and VocabService

- Implemented a new searchVocabs method in VocabService to allow users to search for vocabulary based on learning and mother tongue terms.
- Updated VocabController to include the searchVocabs method wrapped with user authentication.
- Added a new route in vocabRouter for searching vocabulary by language ID.
- Enhanced VocabChapterView and VocabLanguageView components to include a button for opening the search dialog.
- Added translations for search-related terms in both German and English locales, improving user accessibility.
This commit is contained in:
Torsten Schulz (local)
2026-01-05 16:53:38 +01:00
parent dab3391aa2
commit f5e3a9a4a2
8 changed files with 266 additions and 1 deletions

View File

@@ -308,6 +308,16 @@
"stats": "Stats",
"success": "Success",
"fail": "Fail"
},
"search": {
"open": "Search",
"title": "Search vocabulary",
"motherTongue": "Mother tongue",
"learningLanguage": "Learning language",
"lesson": "Lesson",
"search": "Search",
"noResults": "No results.",
"error": "Search failed."
}
}
}