feat(bisaya-course): refine phase 4 didactics and enhance course content generation

- Corrected grammatical errors and improved the phrasing in the BISAYA_PHASE4_DIDACTICS, ensuring clarity and accuracy in the learning materials.
- Updated the course content generation script to include lessons from phase 5, enhancing the overall structure and flow of the course.
- Introduced a new vocabulary course content synchronization process, improving the integration of vocabulary resources across different modules.
- Enhanced the VocabService to dynamically adjust temperature settings based on the mode, optimizing response generation for different contexts.
- Added new localized titles and vocabulary entries in multiple languages, enriching the learning experience for users.
This commit is contained in:
Torsten Schulz (local)
2026-04-17 16:00:41 +02:00
parent c08423ec59
commit 6fa36908b2
18 changed files with 410 additions and 86 deletions

View File

@@ -0,0 +1,17 @@
const COURSE_TITLE_TRANSLATIONS = {
'Deutsch für Bisaya-Lernende - Alltag & Stabilisierung': {
ceb: 'Aleman para sa mga Bisaya nga Tigkat-on - Adlaw-adlaw ug Pagpalig-on'
},
'Bisaya für Familien - Alltag & Stabilisierung': {
ceb: 'Bisaya para sa mga Pamilya - Adlaw-adlaw ug Pagpalig-on'
}
};
export function localizeVocabCourseTitle(rawTitle, locale) {
const title = String(rawTitle || '').trim();
if (!title) return '';
const normalizedLocale = String(locale || 'de').toLowerCase();
const entry = COURSE_TITLE_TRANSLATIONS[title];
if (!entry) return title;
return entry[normalizedLocale] || title;
}