feat(falukant): add age information to lovers in family view
All checks were successful
Deploy to production / deploy (push) Successful in 3m7s
All checks were successful
Deploy to production / deploy (push) Successful in 3m7s
- Updated FalukantService to include age details for partners in relationships. - Added translations for 'age' in English, German, and Spanish localization files. - Enhanced FamilyView component to display age information for lovers and candidates, improving user experience.
This commit is contained in:
40
backend/scripts/german-for-bisaya-phase2-pedagogy.js
Normal file
40
backend/scripts/german-for-bisaya-phase2-pedagogy.js
Normal file
@@ -0,0 +1,40 @@
|
||||
export function getGermanForBisayaLessonPedagogy(lessonNumber, lessonType) {
|
||||
const phaseLabel = lessonNumber <= 60 ? 'quickstart' : lessonNumber <= 120 ? 'daily_life' : 'stabilization';
|
||||
const blockNumber = Math.ceil(lessonNumber / 10);
|
||||
|
||||
let didacticMode = 'core_input';
|
||||
if (lessonType === 'conversation') didacticMode = 'guided_dialogue';
|
||||
if (lessonType === 'grammar') didacticMode = 'pattern_drill';
|
||||
if (lessonType === 'review') didacticMode = 'intensive_review';
|
||||
if (lessonType === 'culture') didacticMode = 'real_life_scenario';
|
||||
|
||||
const difficultyWeight =
|
||||
lessonType === 'grammar' ? 3 :
|
||||
lessonType === 'review' ? 2 :
|
||||
lessonType === 'conversation' ? 2 :
|
||||
1;
|
||||
|
||||
const newUnitTarget =
|
||||
lessonType === 'review' ? 2 :
|
||||
lessonType === 'grammar' ? 4 :
|
||||
phaseLabel === 'quickstart' ? 6 :
|
||||
phaseLabel === 'daily_life' ? 5 :
|
||||
4;
|
||||
|
||||
const reviewWeight =
|
||||
lessonType === 'review' ? 90 :
|
||||
lessonType === 'grammar' ? 60 :
|
||||
lessonType === 'vocab' ? 55 :
|
||||
lessonType === 'culture' ? 20 :
|
||||
35;
|
||||
|
||||
return {
|
||||
phaseLabel,
|
||||
blockNumber,
|
||||
didacticMode,
|
||||
difficultyWeight,
|
||||
newUnitTarget,
|
||||
reviewWeight,
|
||||
isIntensiveReview: lessonType === 'review'
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user