diff --git a/html/kidsai/script-new.js b/html/kidsai/script-new.js index da800ce..26fb698 100644 --- a/html/kidsai/script-new.js +++ b/html/kidsai/script-new.js @@ -242,15 +242,16 @@ class KidsAIExplorer { const welcomeStep = document.createElement('div'); welcomeStep.className = 'conversation-step visible'; - // Get translated messages + // Get translations before creating HTML to avoid context issues const encouragementText = guidance.encouragement || this.getTranslation('default-encouragement') || "Great question! Let's explore this together step by step! 🚀"; const detectiveHelpText = this.getTranslation('detective-help') || "Instead of giving you the answer right away, I'll help you think through this like a detective! 🕵️"; + const aiTeacherText = this.getTranslation('ai-teacher') || "AI Teacher"; welcomeStep.innerHTML = `