feat(bisaya-course): add new lesson and update course creation logic
All checks were successful
Deploy to production / deploy (push) Successful in 2m51s
All checks were successful
Deploy to production / deploy (push) Successful in 2m51s
- Introduced a new lesson titled "Zahlen & Preise" to enhance the numerical curriculum in Bisaya. - Updated the course creation logic to check for existing "Familien"-Bisaya courses, ensuring idempotency in course creation. - Enhanced the lesson didactics by mapping legacy titles to current lesson keys, improving data consistency. - Adjusted the course generation script to limit Bisaya courses to German-speaking learners only, streamlining course offerings.
This commit is contained in:
@@ -5,10 +5,13 @@
|
||||
* Verwendung:
|
||||
* node backend/scripts/create-language-courses.js
|
||||
*
|
||||
* Erstellt öffentliche Kurse für alle Kombinationen von:
|
||||
* Erstellt öffentliche Kurse für Kombinationen aus Ziel- und Muttersprache:
|
||||
* - Zielsprachen: Bisaya, Französisch, Spanisch, Latein, Italienisch, Portugiesisch, Tagalog
|
||||
* - Muttersprachen: Deutsch, Englisch, Spanisch, Französisch, Italienisch, Portugiesisch
|
||||
*
|
||||
*
|
||||
* Ausnahme Bisaya: Es wird nur ein Schnellstart-Kurs „Bisaya für Deutschsprachige“ erzeugt
|
||||
* (Zielgruppe der Plattform). Andere Muttersprachen-Kombinationen für Bisaya entfallen.
|
||||
*
|
||||
* Die Kurse werden automatisch einem System-Benutzer zugeordnet und sind öffentlich zugänglich.
|
||||
*/
|
||||
|
||||
@@ -271,7 +274,10 @@ function generateCourseConfigs() {
|
||||
for (const nativeLang of NATIVE_LANGUAGES) {
|
||||
// Überspringe, wenn Zielsprache = Muttersprache
|
||||
if (targetLang === nativeLang) continue;
|
||||
|
||||
|
||||
// Bisaya: nur Kurs für deutschsprachige Lernende (eine Zielsprache, eine Muttersprache)
|
||||
if (targetLang === 'Bisaya' && nativeLang !== 'Deutsch') continue;
|
||||
|
||||
const title = `${targetLang} für ${nativeLang}sprachige - Schnellstart in 4 Wochen`;
|
||||
let description = `Lerne ${targetLang} schnell und praktisch für den Alltag. `;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user