feat: Aktualisiere Bisaya-Kursinhalte mit verbesserten Erklärungen und repariere alte Lektionen zu "Gefühle & Emotionen"
All checks were successful
Deploy to production / deploy (push) Successful in 2m14s
All checks were successful
Deploy to production / deploy (push) Successful in 2m14s
This commit is contained in:
@@ -25,12 +25,12 @@ const FOOD_CARE_CONVERSATIONS = {
|
||||
{
|
||||
bisaya: 'Gutom na ko.',
|
||||
native: 'Ich habe Hunger.',
|
||||
explanation: '"Gutom" bedeutet "Hunger", "na" ist "schon", "ko" ist "ich"'
|
||||
explanation: '"Gutom" bedeutet "Hunger", "na" ist "schon", "ko" ist die angehängte Form von "ich" (unabhängiges Pronomen: "ako")'
|
||||
},
|
||||
{
|
||||
bisaya: 'Gihikap ko.',
|
||||
native: 'Ich habe Durst.',
|
||||
explanation: '"Gihikap" bedeutet "Durst haben", "ko" ist "ich"'
|
||||
explanation: '"Gihikap" bedeutet "Durst haben", "ko" ist die angehängte Form von "ich" (unabhängiges Pronomen: "ako")'
|
||||
},
|
||||
{
|
||||
bisaya: 'Gusto ka mokaon?',
|
||||
@@ -55,7 +55,7 @@ const FOOD_CARE_CONVERSATIONS = {
|
||||
{
|
||||
bisaya: 'Palihug, hatagi ko ug tubig.',
|
||||
native: 'Bitte gib mir Wasser.',
|
||||
explanation: '"Palihug" ist "Bitte", "hatagi" ist "geben", "ko" ist "mir", "ug tubig" ist "Wasser"'
|
||||
explanation: '"Palihug" ist "Bitte", "hatagi" ist "geben", "ko" ist die angehängte Form für "mir/ich" (unabhängiges Pronomen: "ako"), "ug tubig" ist "Wasser"'
|
||||
},
|
||||
{
|
||||
bisaya: 'Salamat sa pagkaon.',
|
||||
@@ -70,7 +70,7 @@ const FOOD_CARE_CONVERSATIONS = {
|
||||
{
|
||||
bisaya: 'Busog na ko.',
|
||||
native: 'Ich bin satt.',
|
||||
explanation: '"Busog" bedeutet "satt", "na" ist "schon", "ko" ist "ich"'
|
||||
explanation: '"Busog" bedeutet "satt", "na" ist "schon", "ko" ist die angehängte Form von "ich" (unabhängiges Pronomen: "ako")'
|
||||
},
|
||||
{
|
||||
bisaya: 'Kumusta ang pagkaon?',
|
||||
@@ -701,6 +701,35 @@ async function updateFoodCareExercises() {
|
||||
createdByUserId: course.owner_user_id || systemUser.id
|
||||
});
|
||||
totalExercisesCreated++;
|
||||
|
||||
// Gap-Fill: Erzeuge eine Lückentext-Übung, wenn das Bisaya die enclitische Form "ko" enthält
|
||||
try {
|
||||
if (vocab.bisaya && /\bko\b/.test(vocab.bisaya)) {
|
||||
const gapText = vocab.bisaya.replace(/\bko\b/g, '{gap}');
|
||||
await VocabGrammarExercise.create({
|
||||
lessonId: lesson.id,
|
||||
exerciseTypeId: 1, // gap_fill
|
||||
exerciseNumber: exerciseNumber++,
|
||||
title: `Lückentext: "${vocab.native}"`,
|
||||
instruction: 'Fülle die Lücke mit dem passenden Wort.',
|
||||
questionData: JSON.stringify({
|
||||
type: 'gap_fill',
|
||||
text: gapText,
|
||||
gaps: 1,
|
||||
answerLanguage: 'target'
|
||||
}),
|
||||
answerData: JSON.stringify({
|
||||
type: 'gap_fill',
|
||||
answers: ['ko']
|
||||
}),
|
||||
explanation: vocab.explanation,
|
||||
createdByUserId: course.owner_user_id || systemUser.id
|
||||
});
|
||||
totalExercisesCreated++;
|
||||
}
|
||||
} catch (e) {
|
||||
console.error('Fehler beim Erzeugen von gap_fill für Vokabel:', vocab, e);
|
||||
}
|
||||
}
|
||||
|
||||
for (let i = 0; i < n; i++) {
|
||||
|
||||
Reference in New Issue
Block a user